0.2.0 • Published 8 years ago

jstransformer-qejs v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

jstransformer-qejs

QEJS support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

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