jstransformer-riotjs
v0.1.0
Published
Riot.js support for JSTransformers
Downloads
6
Readme
jstransformer-riotjs
Riot.js support for JSTransformers
Please, you should notice the difference between Riot.js and Riot!
Last version was v1.0.4
before become React-like UI library and moved to www.npm.im/riot. There could be JSTransformer for Riot
specially. This just use their v1
template engine, which in other side is little bit different than v2
template engine.
Install
npm install jstransformer-riotjs --save
Usage
For more use-cases see the tests in test folder or see the JSTransformer API for more details.
var riotjs = require('jstransformer')(require('jstransformer-riotjs'));
riotjs.render('<p>Hello {place}</p>', {place: 'world'}).body
//=> '<p>Hello world</p>'
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.