Tuesday 12 April 2016

Decided to start using pre-compiled template

Hello everyone! For the last 2h I've been trying to use pre-compiled templates. I use ejs and the ejs-compile module to pre-compile my templates. I now have a javascript file which is supposed to render my webpage but I cannot manage to figure out how to server it afterwards with express. I've tried using app.send, app.sendFile and app.render but they don't seem to work. I am doing all of this wrong ? Does anyone here who uses pre-compiled templates to serve their web pages using express ran into the same issues while starting out ?

Submitted April 12, 2016 at 08:15PM by Lzp_Hiro

No comments:

Post a Comment