architect-express-resource
0.0.1 • Public • Published architect-express-resource
Allows other architect plugins to create resources through sub apps
Config Format
{
"packagePath": "./node_modules/architect-express-resource",
"viewEngine": require('eco')
}
Usage
module.exports = function (options, imports, register) {
var resource = imports.resource;
var app = resource(require('./pathToResource'), __dirname+'/views');
imports.express.use(options.mount, app);
};
TODO
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.1
4
Version History
- VersionDownloads (Last 7 Days)
- 0.0.1
4
Package Sidebar
Install
npm i architect-express-resource
Weekly Downloads