I put my ejs
template file in views
folder like:
views
|
|--foo.html
|
|--layout.html
so I config my ejs template
Try to use ejs-locals then you can do this in a login.ejs file:
<% layout('layout') -%>
<form></form>
Ahah you just got tricked by Express 3 change in layout management. The official example: https://github.com/visionmedia/express/tree/master/examples/ejs Has not been updated.
In Jade you now have to use blocks and extend the layout. http://www.devthought.com/code/use-jade-blocks-not-layouts/