Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 500 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 500 Bytes

architect-express-resource

Allows other architect plugins to create resources through sub apps

Config Format

{
  "packagePath": "./node_modules/architect-express-resource",
  // This can be anything
  "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

  • Tests