Emailplate
Emailplate is a email template engine designed to make inline css html with your familiar template engine, css preprocessor.
Installation
$ npm install emailplate
Quick Start
var Emailplate = ;var emailplate = views: __dirname + '/emailplates'; emailplate;
Themes
This views
option set where the template theme directory is.
The default theme layout have three files: html., style.stylus, emailplate.json
emailplates
`-- blueprint
|-- emailplate.json
|-- html.hbs
`-- style.styl
-
html.(html|hbs|eco|jade|...)
emailplate support most template engine that consolidate.js supported
-
style.styl
We use stylus because it can support css, sass, less basic syntax. It is robust.
-
emailplate.(json|js|coffee)
We need some information about the theme setting.
API
Initialize
var Emailplate = emailplate = ;
Getter, Setter
emailplate;emailplate;
Get all themes info
emailplate;
Get single theme info
emailplate;
Render theme
emailplate;
License
Copyright (c) 2013 Jarvis Ao Ieong
Licensed under the MIT license.