2. What Is a Web Template Engine?
• A template engine is a framework built mainly
to separate the code (controllers) from the
layout of a website. It sure makes it easier for
the seperation of concerns by enabling
developers and designers to work together
easily.
3. Sample Code
{% extend “layout.html” %}
{% block body %}
<ul>
{% for user in users %}
<li><a href=“{{ user.url
user.username }}</a></li>
</ul>
{% endblock %}
}}”>
{{
4. Features
•
•
•
•
•
•
•
Easy to debug
Powerful automatic html escaping
Template inheritance
Configurable syntax
Sandboxed executional mode
High performance
Optional ahead of time compilation
5. More Info
• Website: http://jinja.pocoo.org
• License: BSD
• Tutorials
– http://jinja.pocoo.org/docs/
– http://kagerato.net/articles/software/libraries/jinj
a-quickstart.html
6. Our Applications Using Jinja
•
•
•
•
http://www.unilagx.com
http://www.unicalx.com
Overflow Classified Management System
http://novatia-versus.appspot.com