Is there a way to pass HTML data to a template?
For example;
<!-- main.eta-->
<%~ include("template.html", {content: () => { %>
<h1>Content</h1>
<% }}) %>
<!-- template.eta-->
<div id="template">
<%~ it.content() %>
</div>
Alternatively, is there a way to temporarily render to a variable instead of the output?
(related issue #245)
Is there a way to pass HTML data to a template?
For example;
Alternatively, is there a way to temporarily render to a variable instead of the output?
(related issue #245)