In Express/EJS, how do I change the default layout?

TIMEX picture TIMEX · Jul 22, 2011 · Viewed 11.1k times · Source

I don't want it to be layout.ejs.

I want to set my layout to be another template for THIS specific controller.

Answer

Dominic Barnes picture Dominic Barnes · Jul 22, 2011

Try using:

app.set("view options", { layout: "mylayout.jade" });