Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Sky Jacobson
8,685 PointsExpress-generator pug vs jade
Is there a new version of express-generator? After installing the express-generator npm I looked into the package.json file and noticed jade instead of pug was in the list of dependencies.
3 Answers

Jacob Wylie
10,893 PointsI'm not sure if there is or not but what i did was change the jade dependency in package.json to: "pug": "^2.0.0-beta11",
and in app.js change the view engine to: app.set('view engine', 'pug');
and finally change the file extensions in the views folders from .jade to .pug.
Also, if you're using sublimetext you can add a package for formatting of .pug files: https://packagecontrol.io/packages/Pug

Anthony Albertorio
22,587 PointsCheck out the example using pug in the docs: https://expressjs.com/en/starter/generator.html

Tamas Sule
13,781 Pointspug = jade. They are the same just the name changed.