Jemplate is a template language created in 2006 by Ingy d枚t Net.
#1580on PLDB | 18Years Old |
git clone https://github.com/ingydotnet/jemplate
JavaScript Templating is the best way to turn AJAX/JSON data into HTML. Jemplate is the best way to do JavaScript Templating.
<style> .stretch { width: 100%; height: auto; max-height: 100%; } </style>
<div class="row">
[% FOREACH kitty = items -%]
[%- LAST IF loop.index==12; -%]
<div class="col-md-2">
<a href="[% kitty.link %]">
<div style="width: 240px; height: 240px; overflow:hidden;">
<img src="[% kitty.media.m %]" alt="[% kitty.title.replace('#.+','') | html %]" class="img-circle stretch">
</div>
</a>
</div>
[% END %]
</div>