I\'m using Python 2.6 and Jinja2 to create HTML reports. I provide the template with many results and the template loops through them and creates HTML tables
I\'ve been using macros in Jinja2 extensively and find them very DR开发者_运维百科Y-ish; but there is one thing bothering me: how to access global stuff from macros? It would be really neat if I could
I understand the concept, but I don\'t understand the syntax. I\'m going to use the example used on their site
Is there a way to change the Jinja2 root directory per-request on Flask? Right now I do: app.jinja_loader = FileSystemLoader(t开发者_StackOverflowemplate_directory)
I am trying to run a website using Python 2.7.1, Jinja 2.5.2, and CherryPy 3.1.2. The Jinja templates I am using are UTF-8 encoded. I noticed that some of the characters in those templates are being t
I have the following Jinja template: {% set mybool = False %} {% for thing in things %} <div class=\'indent1\'>
I have lots of code like this in my template: <h2>Owners of old cars</h2> <table id=\"hor-minimalist-b\" summary=\"Old Cars\">
Is it possible to import a Python module into a Jinja template so I can use its functions? For example, I have a format.py file that contains methods for formatting dates and times. In a Jinja macro
I\'m using Jinja2 on a new project, but would like to use the django-socialregistration app, which relies on Django template tags. Jinja2 doesn\'t play nicely with template tags, so I\'m wondering if
I\'ve got five pages with the same page layout and structure, but some different colors, text, etc, so this is an ideal environment for templating. I\'ve decided to use Jinja2 and probably flask. I\'v