jstransformer-swig
v1.0.0
Published
Swig support for JSTransformers.
Downloads
21
Readme
jstransformer-swig
swig-templates support for JSTranformers.
Installation
npm install jstransformer-swig
API
var swig = require('jstransformer')(require('jstransformer-swig'))
var locals = { title: "Hello World" }
swig.render('<h1>{{ title }}</h1>', locals).body
//=> '<h1>Hello World!</h1>'
License
MIT