naturally like all software things change... tutorials don't stay
relevant forever. Express no longer
takes care of the layout / partial concepts, engines can do this
themselves.
https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x
On Aug 10, 10:47 am, karl unger <
unger.kar...@gmail.com> wrote:
> I'm new to node.js. So I decided to read and try out some of the tutorial.
> I installed node.js, npm installed packages as described on the tutorial
> websites. Everything worked fine until I installed express and ejs. None of
> the tutorials worked out. Layout.ejs was never used. After much frustration
> and many days of trying to figure out what was going on I find out that
> express 3.0 does not (yet) support layouts in ejs. Seehttp://
stackoverflow.com/questions/11751114/layout-ejs-doesnt-work-on...
>
> I uninstalled express 3.0 and installed the earlier 2.5 version and
> everything works fine.
>
> My question is why would npm install express, install an incomplete version
> of express? Why not install a stable version as a default and allow user to
> install a version in development if they choose? Why isn't there any
> mention of this (and possibly other things yet not working in express 3.0)
> on the
express.com website?
>
> It's extremely frustrating particularly to someone new to node.js to find
> out that basic information is not available or not posted.