0.0.1 • Published 7 years ago
jstransformer-node-twig v0.0.1
jstransformer-node-twig
node-twig support for JSTransformers.
Installation
npm install jstransformer-node-twig
API
var twig = require('jstransformer')(require('jstransformer-node-twig'));
// Hello, {{world}}!
twig.renderFileAsync('hello.twig', {}, {world: Earth}).body
//=> 'Hello, Earth'
License
MIT
0.0.1
7 years ago