Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics (2015) Using Templates with Express Using Jade in your Express App

Tony Brackins
Tony Brackins
28,766 Points

Why are we using "templates" folder instead of default "views"?

Just wondering why we're not using the views folder for our Jade files.

Justin Goldby
seal-mask
.a{fill-rule:evenodd;}techdegree
Justin Goldby
Full Stack JavaScript Techdegree Student 12,754 Points

Tony, this is simply personal preference.

Also when you learn about the express generator later on that generates 'boiler plate' code as they call it (code that starts you up with the basic shell/structure that you use most of the time) it generates a views folder as well,

I prefer to use views myself.

To add to this, it probably helps newer people understand what types of files we are working with when using the templates folder.

Tony Brackins
Tony Brackins
28,766 Points

Awesome thx Justin Goldby . I tried to mark as best answer but it's missing for some reason