Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Jemplate

< >

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

#1637on PLDB 20Years Old
Download source code:
git clone https://github.com/ingydotnet/jemplate
Homepage 路 Source Code

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>

- Build the next great programming language 路 Add 路 Add Prompt 路 Issues 路 About 路 Search 路 Keywords 路 Livestreams 路 Labs 路 Resources 路 Acknowledgements

Built with Scroll v178.2.3