Skip to content

Instantly share code, notes, and snippets.

@bzgeb
Last active August 29, 2015 14:01
Show Gist options
  • Save bzgeb/da6714f900a9a14a2fc7 to your computer and use it in GitHub Desktop.
Save bzgeb/da6714f900a9a14a2fc7 to your computer and use it in GitHub Desktop.
app.configure(function () {
app.use(express.static(__dirname + '/public'));
app.use(express.bodyParser());
app.set('views', __dirname);
//app.set('view engine', 'jade');
// make a custom html template
app.register('.html', {
compile: function(str, options){
return function(locals){
return str;
};
}
});
});
app.get('/', function (req, res) {
res.render('index.html', { layout: false });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment