Skip to content

Instantly share code, notes, and snippets.

@tcr
tcr / code.js
Created October 26, 2011 06:22
How can you use Mustache with Node.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'));