Closed ralyodio closed 11 years ago
There's some discussion of this in #14 - right now you should use blocks to do this. You can also pass the variable in when you call res.render
.
Consider just having two layouts and/or using includes for the common parts?
Is it possible to pass a variable to a layout from withing a page.ejs file?
I am doing this now, but it is a global variable I believe:
item.ejs
layout.ejs