Top "Jinja2" questions

Jinja2 is a fast template engine for Python.

Multiple level template inheritance in Jinja2?

I do html/css by trade, and I have been working on and off django projects as a template designer. …

python css django django-templates jinja2
Get loop index of outer loop

In jinja, the variable loop.index holds the iteration number of the current running loop. When I have nested loops, …

jinja2 template-engine
DatePickerWidget with Flask, Flask-Admin and WTforms

I'm trying to render a template that contains a DatePicker, but I'm getting a 500 error when I try. For my …

flask jinja2 wtforms flask-wtforms flask-admin
Jinja Templates - Format a float as comma-separated currency

I'm trying to format a float as comma-separated currency. E.g. 543921.9354 becomes $543,921.94. I'm using the format filter in Jinja templates, …

python flask jinja2
Ansible, set_fact using if then else statement

I am trying to set a variable in Ansible with set_fact at runtime based upon another variable. If uses …

ansible jinja2 ansible-template
Mako or Jinja2?

I didn't find a good comparison of jinja2 and Mako. What would you use for what tasks ? I personnaly was …

python templates template-engine mako jinja2
Flask - Accessing the config variable in the template

I am using Flask version 0.7. I have stored the path of static content in a configuration file and loaded it …

python flask jinja2
How to test for a List in Jinja2?

As far as I can see, there is no way to test if an object is a List instance in …

python jinja2
Jinja2 correctly indent included block

I have two files: base.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"&…

flask jinja2