Skip to content

jstransformers/jstransformer-twig

Repository files navigation

jstransformer-twig

Twig.js support for JSTransformers.

Build Status Coverage Status NPM version

Installation

npm install jstransformer-twig

API

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

twig.render('Hello, {{ name }}!', { name: 'World' }).body
//=> 'Hello, World!'

License

MIT