diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 4 | ||||
| -rw-r--r-- | src/components/site.tag | 4 | ||||
| -rw-r--r-- | src/index.html | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/app.js b/src/app.js new file mode 100644 index 0000000..85732ec --- /dev/null +++ b/src/app.js @@ -0,0 +1,4 @@ +import riot from 'riot'; +import './tags'; + +riot.mount(document.getElementById('app'), 'site');
\ No newline at end of file diff --git a/src/components/site.tag b/src/components/site.tag index e703743..5df0e7c 100644 --- a/src/components/site.tag +++ b/src/components/site.tag @@ -1,4 +1,8 @@ <site> <header /> <content /> + + <script> + import riot from 'riot' + </script> </site>
\ No newline at end of file diff --git a/src/index.html b/src/index.html index 0a8fd59..ca61b52 100644 --- a/src/index.html +++ b/src/index.html @@ -11,15 +11,7 @@ </head> <body> - <site></site> - - <!-- scripts we need --> - <script src="https://cdnjs.cloudflare.com/ajax/libs/riot/3.7.4/riot.min.js"></script> - - <!-- riot tags --> - <script src="bundle.js"></script> - - <!-- mount this app --> - <script> riot.mount('*') </script> + <div id="app"></div> + <script src="app.js"></script> </body> </html> |
