Skip to content

This module allows multiple view paths to be defined in a single Express instance

License

Notifications You must be signed in to change notification settings

jghowe/express-multiple-views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple View Folders for ExpressJS

This module is an addon for ExpressJS 3.x that allows multiple view folders to be defined.

Install

npm install https://github.com/jghowe/express-multiple-views/archive/master.tar.gz

Usage

To use, setup your default view path and then add additional view paths as necessary.

var path = require('path'),
	app = require('express')(),
	multipleViews = require('express-multiple-views');

app.set('views', path.join(__dirname, 'views'));

multipleViews(app, path.join(__dirname, 'module1/views'));
multipleViews(app, path.join(__dirname, 'module2/views'));
/* ... */

About

This module allows multiple view paths to be defined in a single Express instance

Resources

License

Stars

Watchers

Forks

Packages

No packages published