pressman

0.11.4 • Public • Published

pressman

Making emails awesome is fun and easy!

Specify a templates directory with your email templates in them like so...

templates
  |
  |- welcome
  |   |- html.jade
  |   `- text.ejs
  `- password-reset
      |- html.jade
      `- text.ejs

Next you then may render whichever template is needed...

var pressman = require("pressman")(__dirname + "/templates")

pressman.render("welcome", {...}, function(err, mgs){
  console.log(mgs)
  // { text: "Welcome", html: "<h1>Welcome</h1>" }
})

pressman.render("password-reset", { token: token }, function(err, mgs){
  /// console.log(mgs)
})

Readme

Keywords

none

Package Sidebar

Install

npm i pressman

Weekly Downloads

0

Version

0.11.4

License

none

Unpacked Size

8.29 kB

Total Files

15

Last publish

Collaborators

  • sintaxi