shnappy-email-templater

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i shnappy-email-templater

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

4.1 kB

Total Files

9

Last publish

Collaborators

  • dwnz