Suger Pod
Suger Pod is a simple template engin that extends CoffeeScript.
Installation
$ npm install suger-pod
node> require('suger-pod');
Quick Example
suger = require 'suger-pod'
suger.render "console.log @@name", name: 'Jhon'
# => "console.log('Jhon');"
Bind agrs to variables that start with '@@'.
(for example: @@name)
Types of Embeded variable are supprted with String, Number, Boolean, Date, RegExp and Object.
Express
To use with Express and the .coffee extension, simply register the engine:
app.register('.coffee', require('suger-pod'))
License
Licensed under MIT.