3 ms·
Templates. Very useful in many places. Although if you are using templates in Python, you are likely using jinja2. And they just "fixed" the bug. So you are go
by brianwawok 10y ago
Templates. Very useful in many places.
Although if you are using templates in Python, you are likely using jinja2. And they just "fixed" the bug. So you are good to go if your upgrade.
- dom0 10y agoAlthough this only applies to format-string evaluation in Jinja2, which would look something like {{ "Hello {user.name}".format(user) }} which is really kinda obscure, especially since Jinja already has an explicit |format using the very safe / limited (but generally sufficient) alternative %(key)s syntax (also suitable for i18n, to some extend).