Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon



Jinja is a template created in 2006 by Armin Ronacher.

#166on PLDB 16Years Old 13.8kUsers
0Books 0Papers 37kRepos

Jinja is a template engine for the Python programming language and is licensed under a BSD License created by Armin Ronacher. It is similar to the Django template engine but provides Python-like expressions while ensuring that the templates are evaluated in a sandbox. It is a text-based template language and thus can be used to generate any markup as well as sourcecode. Read more on Wikipedia...

Example from Linguist:
<h1>Workers</h1> <table class="workers"> <tr> <th>Job server</th> <th>IP</th> <th>File descriptor</th> <th>Client ID</th> <th>Functions</th> </tr> {% for server_info in server_infos %} <tr {% if server_info['failed'] %} class="failure" {% endif %} > <th>{{ server_info['hostport'][0] }}:{{ server_info['hostport'][1] }}</th> <th> {%- if server_info['failed'] -%} Not responding! {%- endif -%} </th> <th></th> <th></th> <th></th> </tr> {% if not server_info['failed'] %} {% for worker in server_info['workers'] %} <tr> <td class="server"></td> <td class="ip">{{ worker['ip'] }}</td> <td class="file_descriptor">{{ worker['file_descriptor'] }}</td> <td class="client_id">{{ worker['client_id'] }}</td> <td class="functions"> {{ worker['tasks']|join(', ') }} </td> </tr> {% endfor %} {% endif %} {% endfor %} </table>
Example from Wikipedia:
<!DOCTYPE html> <html> <head> <title>Value with &lt;unsafe&gt; data</title> </head> <body> 1, 2, 3, 4, 5, 6 </body> </html>
dylan.html 路 jinja.html 路 java-server-pages.html

View source

PLDB - Build the next great programming language 路 v2022 Day 32 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub