1

I'm using express, and writing my views in jade. One of them is an index.jade file, id like to serve this file as you would an .html. How would I do this? I tried res.sendfile('views/index.jade') and res.sendfile('views/index.html')

Thanks!

fancy
  • 48,619
  • 62
  • 153
  • 231

1 Answers1

4

To render a page, you need to use

res.render('index');
ming_codes
  • 2,870
  • 25
  • 24