0.0.4 • Published 12 years ago

suger-pod v0.0.4

Weekly downloads
14
License
-
Repository
github
Last release
12 years ago

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.

0.0.4

12 years ago

0.0.3

13 years ago

0.0.1

13 years ago