Take the 2-minute tour ×

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')


share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

To render a page, you need to use

share|improve this answer
ahh i see, thanks –  fancy Mar 8 '12 at 1:16
add comment

Your Answer


