Skip to content

Instantly share code, notes, and snippets.

@GianlucaGuarini
Last active October 2, 2016 18:26
Show Gist options
  • Save GianlucaGuarini/20c3d52cd2dfc686d9c70126feb30e40 to your computer and use it in GitHub Desktop.
Save GianlucaGuarini/20c3d52cd2dfc686d9c70126feb30e40 to your computer and use it in GitHub Desktop.
<bar>
<p>bar</p>
</bar>
<baz>
<p>baz</p>
</baz>
require('./bar.tag')
require('./baz.tag')
<foo>
<bar></bar>
<baz></baz>
<script>
</script>
</foo>
var riot = require('riot')
require('./foo.tag')
console.log(riot.render('foo'))
{
"name": "require-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Gianluca Guarini <gianluca.guarini@gmail.com> (http://gianlucaguarini.com)",
"license": "MIT",
"devDependencies": {
"riot": "^2.6.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment