Changed around line 36: playgroundIde
- The results/preview pane can be displayed by itself without the ide/editor by using `playground-project` and `playground-preview`, I haven't made a parser for these web components. Here is an example:
- belowAsCode
-
-
-
- Hello
-
-
- document.body.appendChild(document.createTextNode("World!"))
-
-
+ The results/preview pane can be displayed by itself without the ide/editor by using `playground-project` and `playground-preview` html elements. I wrote a playgroundPreviewParser to encapsulate these. Here is an example:
+ link playground-ide.scroll playgroundPreviewParser
+ belowAsCode 2
+ belowAsHtml
+ playgroundPreview
+ style height:150px
+ file index.html
+
+
+ Hello
+
+
+ window.Flems(flems, {
+ files: [{
+ name: 'app.js',
+ content: 'm.render(\n\tdocument.body,\n\tm("h1", "Hello world")\n)'
+ }],
+ links: [{
+ name: 'mithril',
+ type: 'js',
+ url: 'https://unpkg.com/mithril'
+ }]
+ })
+