2

There is a question on here answering for v2, but the v3 ExpressJS api is quite different, and uses a totally different layout system. Does anyone have any experience using Underscore.js (if needed with Consolidate.js) as the main view engine for an Express v3 app with the ability to use master layouts?

I've got it as the main view engine but no layouts work (it just prints out the single html file)

1 Answers1

0

Express 3.x removes support for layout and partials. IF you need to do the same thing you used to do, you can always use "EJS" template engine which is basically the same used by underscore and compliment it wit express-partials plug in.