Node js express view engine

267 Views Asked by At

I recently started node.js and express and I just couldn't find what is this view engine. and what's the difference between different kinds of them. for example : app.set('view engine', 'jade');

app.set('view engine', 'html');
1

There are 1 best solutions below

0
On
app.set('view engine', 'html'); // Means, render pages in HTML
app.set('view engine', 'jade'); // Means, render pages in Jade template

view engine is just a keyword/property to tell/set ExpressJS what kind of engine/format to render the page in.

What's Jade? Go here