0.1.0 • Published 9 years ago

jstransformer-riotjs v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

jstransformer-riotjs The MIT License

Riot.js support for JSTransformers

travis build status coverage status dependency status npmjs.com

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.

License

The MIT License