node-modules-mtmpl
Simple JavaScript templating for NodeJS
Based heavily on John Resig's micro-templating.
Installation
$ npm install mtmpl
Usage
var mtmpl = ; // 'Hello, my name is John!'var html = mtmpl; // A reusable template function.var tmplFunc = mtmpl; // 'Hello, my name is Bob!'var html1 = ; // 'Hello, my name is Jim!'var html2 = // A reusable template function as a string.var precompiled = mtmpl;
Tests
$ npm test