Measures Concepts
GitHub icon

Jemplate

Jemplate - Template language

< >

Jemplate is a template language created in 2006 by Ingy d枚t Net.

Source code:
git clone https://github.com/ingydotnet/jemplate
#2272on PLDB 18Years Old

JavaScript Templating is the best way to turn AJAX/JSON data into HTML. Jemplate is the best way to do JavaScript Templating.


Example from the web:
<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>

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout