Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 631 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 631 Bytes

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