It can:
- Insert strings into an element or as attributes.
- Nested referencing, as in
data-template-part="media.image.small"
. - Basic loops of arrays of objects.
`npm install microtpl``
<h1 data-template-part="title"></h1>
var data = {
items: [
{title: 'a title'},
{title: 'another title'},
],
};
micro.inject($el, data);
<ul>
<li data-repeat="items">
<span data-template-part="title"></span>
</li>
</ul>
<img src=""
data-template-part="image.src"
data-template-attr="src">