Sitelet https://web.archive.org/web/20200909225647/https://github.com/draftcode/jinja2
Skip to content
master
Go to file
Code
This branch is 1251 commits behind pallets:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
ext
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

Jinja2

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Nutshell

Here a small example of a Jinja template:

{% extends 'base.html' %}
{% block title %}Memberlist{% endblock %}
{% block content %}
  <ul>
  {% for user in users %}
    <li><a href="/sitelet?url=https%3A%2F%2Fweb.archive.org%2Fweb%2F20200909225647%2Fhttps%3A%2F%2Fgithub.com%2Fdraftcode%2F%257B%257B%2520user.url%2520%257D%257D">{{ user.username }}</a></li>
  {% endfor %}
  </ul>
{% endblock %}

Philosophy

Application logic is for the controller but don't try to make the life for the template designer too hard by giving him too few functionality.

For more informations visit the new Jinja2 webpage and documentation.

The Jinja2 tip is installable via easy_install with easy_install Jinja2==dev.

About

The Jinja2 template engine

Resources

License

Packages

No packages published
You can’t perform that action at this time.