I'm not sure what you mean: "Razor or master pages in .NET"? What do you want to do, use partial views?
But the main way to configure Hogan.js for Express is as follows:
var express = require('express'); var app = express(); app.set('views', __dirname + '/views'); app.set('view engine', 'hjs'); app.use(app.router); app.use(express.static( __dirname + '/public' )); app.get('/', function( req, res, next ) { res.render('index'); }); app.listen(3000);
You will have to npm install express [--save] , npm install hjs [--save] , depending on whether it is inside your package.json package or not.
Then you simply create the submission directory and drop the index.hjs file and you install it.
Let me know what you want to do with your templates, and we can work from there.
Dropped.on.Caprica
source share