Is there a way to turn on line breaks? It would be useful when debugging.
I know this topic ( Node.js JADE linebreaks in source? ) says no due to performance, but on your local machine when developing, it should’t be a problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After a bit of searching I found the solution. Add this to your Express configuration, and it will make Jade tidy up the output:
Express 3.x CoffeeScript
Express 3.x Javascript
Express 2.x CoffeeScript
Express 2.x Javascript