Top "Jinja2" questions

Jinja2 is a fast template engine for Python.

Jinja 2 safe keyword

I have a little problem understanding what an expression like {{ something.render() | safe }} does . From what I have seen, without …

python template-engine jinja2
jinja2 print to console or logging

I'm kind of new to Jinja2 and am wondering if there is a way to make the templates, while being …

python template-engine jinja2
casting ints to str in Jinja2

I want to cast an int that's passed to the template through the url, but it says that the str …

python jinja2
Loading external script with jinja2 template directive

I'm very new to jinja2 and the use of templates in general so I was wondering if there's an easy …

python templates scripting jinja2 external
Render an editable table using Flask, Jinja2 templates, then process the form data returned

I'm using Flask and Jinja2 and I need to make an editable table with multiple rows. This is what the …

python flask jinja2 wtforms
Remove the empty lines left by Jinja2 variable definitions

When writing template files using Jinja2 for Saltstack, I often define some variables at the beginning of the file. For …

jinja2 salt-stack
Disabled field is considered for validation in WTForms and Flask

I have some fields in page disabled as for example:(using jinja2 templating system) <html> <body> &…

python flask jinja2 wtforms
Changing the active class of a link with the twitter bootstrap css in python/flask

I got the following html snippet from my page template.html. <ul class='nav'> <li class="active"&…

python class twitter-bootstrap flask jinja2
Add input fields dynamically with wtforms

I'm not quite sure how approach this matter. I hope i get there. For example I have a table full …

python flask jinja2 wtforms flask-wtforms
How to get IP address of hostname inside jinja template

Our saltstack is based on hostnames (webN., dbN., etc.). But for various things I need IPs of those servers. For …

python jinja2 salt-stack