git.s-ol.nu mmm / 7b61518
fix mmm-embed s-ol 3 years ago
7 changed file(s) with 27 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
3939 transform: (node) => if MODE == 'SERVER' then node else node.outerHTML
4040 },
4141 {
42 inp: 'text/html%+frag',
42 -- inp: 'text/html%+frag',
43 -- @TODO: this doesn't feel right... maybe mmm/dom has to go?
44 inp: 'mmm/dom',
4345 out: 'text/html',
4446 transform: (html, fileder) => render html, fileder
4547 },
0 assert MODE == 'CLIENT', '[nossr]'
0 import div from require 'mmm.dom'
1
2 if MODE ~= 'CLIENT'
3 class Dummy
4 render: =>
5 div 'Interactive Example not available with Server-Side rendering', style:
6 position: 'relative'
7 resize: 'horizontal'
8 overflow: 'hidden'
9
10 width: '576px'
11 height: '324px'
12 'min-width': '324px'
13 'max-width': '742px'
14
15 margin: 'auto'
16 padding: '10px'
17 boxSizing: 'border-box'
18 background: 'var(--gray-bright)'
19
20 return {
21 UIDemo: Dummy
22 Example: Dummy
23 }
124
225 import CanvasApp from require 'mmm.canvasapp'
3 import div from require 'mmm.dom'
426
527 class UIDemo extends CanvasApp
628 width: nil
00 =>
1 assert MODE == 'CLIENT', '[nossr]'
2
31 import UIDemo from @get '_base: table'
42
53 class FitDemo extends UIDemo
00 =>
1 assert MODE == 'CLIENT', '[nossr]'
2
31 import UIDemo from @get '_base: table'
42
53 arr = (args) ->
00 =>
1 assert MODE == 'CLIENT', '[nossr]'
2
31 import Box, Example from @get '_base: table'
42
53 class Sidebar extends Example
00 =>
1 assert MODE == 'CLIENT', '[nossr]'
2
31 import UIDemo from @get '_base: table'
42
53 arr = (args) ->
00 =>
1 assert MODE == 'CLIENT', '[nossr]'
2
31 import Box, Example from @get '_base: table'
42
53 class VTK extends Example