jstransformers / jstransformer-riotjs

Riot v1.0.4 (latest release before become React-like) support for JSTransformers
MIT License
0 stars 0 forks source link

jstransformer-riotjs

Riot.js support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Note

There is a difference between Riot.js and Riot. The last version was v1.0.4 before it become a React-like UI library and moved to www.npm.im/riot. There could be a JSTransformer for Riot specially. This is just their v1 template engine, which is a little bit different than v2 template engine.

Installation

npm install jstransformer-riotjs --save

API

var riotjs = require('jstransformer')(require('jstransformer-riotjs'))

riotjs.render('<p>Hello {place}</p>', {place: 'world'}).body
//=> '<p>Hello world</p>'

License

MIT