Is there a way to compile and render a .jade view on the fly eg. if it was stored in a db or would it have to be written to the file system first or is it possible to hook into the view system to achieve this.
Share
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.
What I know is that Express/Jade allow template modification without restarting the server.
Also, instead of trying to hook Express to render a string, why don’t you simply use jade directly and send it to the client ? Few untested, pourly ordered lines of code to help :