Integrating RiotJS with PugJS (ex Jade) as a Webpack loader
MIT License
$ npm install --save-dev tag-pug-loader
And add the loader to your webpack.config.js
:
module.exports = {
// ...
module: {
loaders: [
{ test: /\.tag$/, exclude: /node_modules/, loader: 'tag-pug-loader' }
]
}
}
Write RiotJS tags using PugJS (ex Jade)
app.tag
app
p Hello world
app.js
var riot = require('riot')
var app = require('app.tag')
riot.mount(app)
$ npm test
Feel free to open issues to propose stuff and participate. Pull requests are also welcome.