fetch-node
v0.0.1
Published
Gets view templates off the server if they don't exist
Downloads
224
Readme
###fetch-node
Gets view templates off the server if they don't exist
var express = require('express'), app = express();
app.engine('m', require('hogan-express'))
app.set('view engine', 'm')
app.set('views', '.')
require('./fetch-node.js')({}, app);
app.listen(3000);
console.log('listening on 3000');
app.get('/', function(r,s){
s.render('test.m', {name: 'chris', greeting: 'hi'})
})