Jinja Templating Cont'd - Flask Web Development with Python 27
Welcome to a Flask tutorial covering a bit more about Jinja. This tutorial is a quick overview of the points I find to be most important from the Jinja documentation, which is definitely a must-read/glance at. Just like I recommend scrolling through the Bootstrap documentation once in a while, you should do the same here.
First on our docket: Filters. I find myself using these very often. These are very similar to your str(), int(), and replace() commands in Python. For example, let's build a quick new page to run our Jinja samples through:
Text-based version of this tutorial and sample code: http://pythonprogramming.net/jinja-template-flask-tutorial/
jinja template docs: http://jinja.pocoo.org/docs/dev/templates/
https://twitter.com/Sentdex