I am using Jade with nodejs and express. When I call res.render on my jade code, it converts it to html. However, the html has no line breaks. Can I tell jade to preserve code formatting?
express 2.x
app.set('view options', { pretty: true });
express 3.x
app.locals.pretty = true;
Scroll down to "View Options" in this wiki page.
Also see this answer.