Skip to content

Instantly share code, notes, and snippets.

@tcr
tcr / code.js
Created Oct 26, 2011
How can you use Mustache with Node.js?
View code.js
var express = require('express');
var app = module.exports = express.createServer();
// Configuration
app.configure(function(){
app.set('view engine', 'mustache');
app.set('views', __dirname + '/views');
app.register(".mustache", require('stache'));