Express - Setting view engine

view engine holds the template file extension, e.g. ‘jade’ or ‘html’.

Omitting this variable will cause res.render failed to load templates. Explicitly specify the extension if omitted this variable:

1
res.rend('index.jade', datas);
0%