express-velocity
v1.0.0
Published
express's engine wrap for velocity template
Downloads
226
Readme
Express-velocity
An simple wrap for velocity template engine when using it in express.
usage
var express = require('express');
var vm = require('express-velocity');
var app = express();
app.engine(".vm", vm({
root: __dirname + "/view" //duplicated with views setting but required for velocity template
}))
app.set("views", __dirname + "/view")
app.render("index.vm", function( err, content ){
assert(content === '<body>hello</body>')
})