Closed sviridoff closed 1 year ago
@sviridoff, I think this is a great idea for a plugin or otherwise as an extension of the Eta template engine!
This would break the ability of templates to reference themselves conditionally, e.g.
partials/comment.eta
<% if (it.childComment) { %>
<%~ include("/partials/comment.eta") %>
<% } %>
So I won't change the builtin behavior.
Hi, it would be great to have a compile function that not only compiles the code but also compiles the includes within it. This would be useful for a webpack loader, for instance.
instead something like that:
to a:
I would appreciate hearing your opinion regarding the proposal