You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently an application has one express app instance which uses a router for each route. The downside with this approach is app.set('views') is set on the global app so every route shares the same views (and partials if using express-partial-templates).
If we create a new express app instance for each route, and pass in the global express app instance, we should be able to concatenate the global app views with the route views, and call express-partial-templates passing the child app.
This would result in each route having its own res.locals.partials, which are a superset of the base app partials
The text was updated successfully, but these errors were encountered:
Currently an application has one express app instance which uses a router for each route. The downside with this approach is
app.set('views')
is set on the global app so every route shares the same views (and partials if using express-partial-templates).If we create a new express app instance for each route, and pass in the global express app instance, we should be able to concatenate the global app views with the route views, and call express-partial-templates passing the child app.
This would result in each route having its own res.locals.partials, which are a superset of the base app partials
The text was updated successfully, but these errors were encountered: