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

Gustavo Winter
PLUS
Gustavo Winter
Courses Plus Student 27,382 Points

Express and pug

Hello, i don't wanna use pug on my project. Is there another way than i can use express without Pug?

How can i implementing variables in the html without Pug?

1 Answer

Samuel Ferree
Samuel Ferree
31,722 Points

If you want to use variables in your dynamic web application, you'll need some html template to render pages with. It's this rendering process that fills in the values of the variables you pass in.

That being said, pug is simply a popular choice to use with express, there are many choices you can use. They are listed here

Tom Gooding
Tom Gooding
16,735 Points

Also check out this part of the docs for how to set the templating engine.

https://expressjs.com/en/guide/using-template-engines.html