aresig
v1.0.5
Published
John Resig microtemplate with promises
Downloads
4
Readme
aresig
Javascript microtemplate with async helpers and data, inspired by John Resig Micro-Templating library.
Super simple tempalte engine
const tplString = `
<div id="<%= id %>" class="<%= (i % 2 == 1 ? "even" : "odd") %>">
<div>
<img src="<%= profileImageUrl %>"/>
</div>
<div class="contents">
<p>
<a href="/<%= fromUser %>">
<%= fromUser %>
</a>: <%= text %>
</p>
</div>
</div>
`;