lite

A cross platform template engine base on xml/html and javascript expression.

Lite

A cross platform template engine base on xml/html and javascript expression.

npm install lite

Example:

var LiteEngine = require('lite').LiteEngine;
var engine = new LiteEngine('./');
require('http').createServer(function (requestresponse) {
if(/\.xhtml$/.test(request.url)){
var model = {};
     engine.render(request.url,model,request,response);
}
}).listen(2012);
  • [LiteEngine]:
    • render(url,model,request,response)