I want to use 2 layouts for main page and admin page
What should i configure my code to do that?
here is my current code configure
app.configure(fu
I usually set layout to false globally, so I know exactly what layout I use where (so no default layout):
app.set('view options', { layout: false });
Then in my routes I can set a layout per route like so:
res.render('my_page', { layout: 'my_layout' });
Read more about Express layouts and templates engines