fetch-node

0.0.1 • Public • Published

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'})
})

Readme

Keywords

none

Package Sidebar

Install

npm i fetch-node

Weekly Downloads

66

Version

0.0.1

License

none

Last publish

Collaborators

  • dpweb