Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Jemplate

< >

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

#1603on PLDB 18Years Old
Download source code:
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.


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 About Resources Acknowledgements Part of the World Wide Scroll