spritz-jstemplate
v0.1.2
Published
A JSTemplate templating module for Spritz web framework
Downloads
17
Maintainers
Readme
spritz-jstemplate - A JSTemplate templating module for Spritz web framework
How to use
var
spritz = require('spritz');
// Use it!
spritz.use(require('spritz-jstemplate'));
// On a route
spritz.on('/',function(req,res){
spritz.template(req,res,'file',{my:'args'},200,{'content-type':'text/html; charset=UTF-8'});
});