-1

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');
Cœur
  • 37,241
  • 25
  • 195
  • 267
asasdasd
  • 33
  • 1
  • 6

1 Answers1

0
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

Sobiaholic
  • 2,927
  • 9
  • 37
  • 54