jstransformer-qejs
v0.2.0
Published
QEJS support for JSTransformers.
Downloads
23
Keywords
Readme
jstransformer-qejs
QEJS support for JSTransformers.
Installation
npm install jstransformer-qejs
API
var qejs = require('jstransformer')(require('jstransformer-qejs'))
var template = 'Hello, <%- name %>!';
var locals = {
name: 'World'
};
qejs.renderAsync(template, locals, function(err, data) {
data.body;
//=> 'Hello World!'
});
License
MIT