mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.71k stars 846 forks source link

How to render the template partially in multiple times without throwing exceptions? #642

Open leonardo-czanoch opened 2 years ago

leonardo-czanoch commented 2 years ago

Say I put several tags like <%= or <%- in one template. I don't want to render the template just once and provide all data. I want to render the template several times and provide small pieces of the whole data for every rendering.

Is my idea possible? For now, it throws exceptions if I don't provide all the data.

dBenoi commented 2 years ago

Are you going to be rendering it randomly, or rendering it sequentially?