0.0.4 • Published 6 years ago

shnappy-email-templater v0.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

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