VEXT
Velocity for express.js
Usage
First of all, install it with npm.
npm install --save-dev vext
Then write some codes in the entry file of express.js, such as app.js
.
var vext = ; // Set Velocity as the view engineapp;// Use VEXT to render filesapp;
You can view examples for detail. ;-)
APIs
There is only one API now. :-(
.set(key, value)
To rewrite the default settings of VEXT.
// The default layout is `template/layouts/default.vm`,// to change it to `template/layouts/admin.vm`.vext;