avril
v0.1.10
Published
avril framework is a web framework based on Express, it provides unlimited layout and partial support for web, make the coding experience feel like asp.net mvc, provides globallization and resource( css and js) minify.
Maintainers
Readme
avril
A scaffold framework to bring powerful support of layout and section for Express . Support most template engine of Express .
Installation
npm install avrilBegin to use avril
var express = require('express');
var app = express();
var avril = require('avril');
avril.initRootDir(__dirname);
avril.extend( avril.Mvc.mvcConfig , {
});
avril.initComponent('mvc', { app: app, viewEngine: require('jshtml') });
avril.extend(avril.getConfig('app') , process.env);
app.listen(appConfig.port);Example
use layout
you just need to add <!--layout(layoutName)--> at the front of your view .
such as
<!--layoutName-->
