Categories
express node.js

Rendering `html` when using `jade` templating engine, in Express

How do you render an html file while keeping the templating engine as jade ?

app.set('view engine', 'jade'); is where i’ve set the templating engine as jade and I want to do something like

app.get('/world', function(req,res){
res.render('profile.html', );

To render the html file.

I’m programming in node.js using express.js.

Note: i’ve already require html using var html=require('html');

Edit:

I understand res.render need not be used as html is already rendered. res.send(profile.html); gives error of profile is undefined