RandomEtc / ejs-locals

Express 3.x layout, partial and block template functions for the EJS template engine.
298 stars 63 forks source link

EJS include is compromised #52

Closed pSnehanshu closed 4 years ago

pSnehanshu commented 4 years ago

EJS supports includes in the form of <%- include('file.ejs', { data: 123 }) %>, whereas, if we use ejs-locals, we're forced to use the old includes syntax, <%- include file.ejs %> where we can't pass data to the partials. This needs a fix.

https://github.com/mde/ejs/issues/540