shnappy-email-templater
v0.0.4
Published
Merges JS objects into HTML templates using handlebars
Downloads
2
Maintainers
Readme
shnappy-email-templater
Merges JS objects into HTML templates using handlebars
Installing
npm install shnappy-email-templater --save
Setup
Uses config to define the template path. Make sure to set it in your config/default.json file.
Example
var templateEngine = require('shnappy-email-templater');
templateEngine.RenderTemplate('templateName', {name:'dwnz'}, function(output){
console.log(output);
});
Methods
RenderTemplate(templateName, model, callback);
Testing
npm test