lundi 29 juin 2015

Inluding variables within partial templates using ejs with express 4.x


I am using Express 4.x with Ejs. I have a main template in which I'd like to include a few partials. I have an array with some objects. Now I want to loop through this array and for each object, I'd like to include a partial that is filled with the values from the object.

This website explains the most of this: http://ift.tt/1CdudwF

Problem is, it includes the partials only, but I want to be able to parse some variables into the partials before including them.

Thanks


Aucun commentaire:

Enregistrer un commentaire