Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MEAN stack, I don't want to use Jade, how do I just use HTML

I am developing an application with the MEAN stack and am really not liking 'Jade'. I find myself just using an HTML to Jade translator a lot and would just rather write in HTML.

How do I not use Jade in an Express project?

Also, could someone explain what a templating engine is and why one is needed?

like image 409
Tim Avatar asked Dec 01 '25 04:12

Tim


1 Answers

You can set:

app.use(express.static(__dirname + '/public'));

in your config file instead to use just vanilla HTML.

As the previous response, templating engines allow you to set more dynamic content and write less code.

like image 125
SkyOut Avatar answered Dec 02 '25 17:12

SkyOut