express.js is the most widespread web framework for nodejs.
mustache.js, handlebars.js and Hogan.js are template systems based on, or derived from, Mustache. But these modules don't work with express.js out of the box. There is some boilerplate code that's missing.
Bigode.js tries to add that "glue" that will let you use these templating modules with express without all the boilerplate stuff.
varexpress=require('express');varapp=express.createServer();// create the express appvarwrapper=require('bigode.js').mustache();// <<<--- getting the mustache.js wrapper from bigode.jsvarwrapper=require('bigode.js').handlebars();// <<<--- getting the handlebars.js wrapper from bigode.jsvarwrapper=require('bigode.js').hogan();// <<<--- getting the hogan.js wrapper from bigode.jsapp.configure(function(){app.set('views',__dirname+'/views');app.use(express.bodyParser());app.use(express.methodOverride());app.use(app.router);app.use(express.static(__dirname+'/public'));app.register('.html',wrapper);// <<<-- using wrapper to process .html files});