Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Template engin using CoffeeScript
CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec/lib
.gitignore
Cakefile
README.md
index.js
package.json

README.md

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.

Something went wrong with that request. Please try again.