Skip to content

nujii/architect-express-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Express Resource plugin for Architect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published