express icon indicating copy to clipboard operation
express copied to clipboard

Layout and partial problem in ejs template

Open flowforever opened this issue 14 years ago • 4 comments

Dear Express team , I recently update my expressjs to the latest version , but I found that I could not use layout and partial anymore . I don't know if this is an issue or not .

Since Jade template is hard to read , I would prefer to use ejs template . I really like layout and partial function , or if there are any other way to use this function .

flowforever avatar Apr 18 '12 07:04 flowforever

Be sure to read his migration guide: https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x

layout is template specific now.

scarvell avatar Apr 18 '12 08:04 scarvell

yeah when I have a moment I'll be adding something to EJS instead of the old opinionated layout/partial stuff in Express

tj avatar Apr 18 '12 16:04 tj

https://github.com/visionmedia/ejs/issues/35 for ref

tj avatar Apr 18 '12 16:04 tj

Please bring back ejs layout :(

mauromarano avatar Jul 29 '12 10:07 mauromarano