

If there is some processing to be done that exceeds the ability of your template engine, you can always build your own module to do the processing and return the processed data to your template engine for rendering. Open the gulpfile.js and write the following task: var gulp require ('gulp'), pug require ('gulp-pug') // run this task by typing in gulp pug in CLI. These versions of Microsoft Outlook do not support the following: Buttons. This is where we are going to assign the command that gulp will use to understand our pug file in the templates folder and compile it to a new build folder. I don't really have any experience with it, so I can't really say for sure, but you might give it a look.Īs far as using template engines to build your pages goes, I think that as long as you are gathering the data on the server side, it is pretty acceptable to use your template engine to insert the data into your pages. This causes the formatting of emails to be rendered differently from other email clients like Gmail or Apple Mail, which is due to the fact that Microsoft Word is meant for print design and not HTML. There might also be a way to do this with socket.io that would keep you from having to make another route. It sounds like, given your limitations, this might be your only (or at least most reasonable) solution. The main things I would suggest there is that you make sure you aren't in violation of the API provider's terms of use, and that you aren't just creating an open proxy to their API.

I was thinking the same thing about creating another route to specifically get the data with AJAX.
