Posted By

saturngod on 05/26/11


Tagged


Versions (?)

jqtpl with express


 / Published in: JavaScript
 

  1. var app = require('express').createServer();
  2.  
  3. app.set("view engine", "html");
  4. app.register(".html", require("jqtpl").express);
  5. app.set("view options", { layout: false })
  6.  
  7. app.get('/', function(req, res){
  8. res.render(__dirname+'/index.html',{a:"saturngod"});
  9. });
  10.  
  11. app.listen(3000);

Report this snippet  

You need to login to post a comment.