Top "Jinja2" questions

Jinja2 is a fast template engine for Python.

Can a Jinja variable's scope extend beyond in an inner block?

I have the following Jinja template: {% set mybool = False %} {% for thing in things %} <div class='indent1'> <…

templates variables scope jinja2
Append list variable to another list in Ansible

is it possible to append a variable list to a static list in ansible? I can define the whole list …

jinja2 ansible ansible-playbook
How to dynamically select template directory to be used in flask?

By default flask uses template files stored in "template" directory : /flaskapp /application.py /templates /hello.html Is there any way …

python flask jinja2
Loop dictionary in ansible template

I'm trying to loop a dictionary through an ansible template using jinja2 to create a number of datasources but receive …

ansible jinja2 ansible-template
Escaping double curly braces in Ansible

How to escape double curly braces in Ansible 1.9.2? For instance, how can I escape double curly braces in the following …

docker jinja2 ansible
How to get values from dictionary in jinja when key is a variable?

I'm trying to retrieve entries from a python dictionary in jinja2, but the problem is I don't know what key …

python variables dictionary jinja2 substitution
use a css stylesheet on a jinja2 template

I am making a website using html, css, flask and jinja2. I have a page working on a flask server, …

python html css flask jinja2
Unable to pass jinja2 variables into javascript snippet

How do i pass jinja2 data into javascript. I have a Flask REST url as /logs/<test_case_name&…

javascript python flask jinja2
Remove unnecessary whitespace from Jinja rendered template

I'm using curl to watch the output of my web app. When Flask and Jinja render templates, there's a lot …

python flask jinja2