I decided to implement a custom Jinja template block tag for my datasette-render-markdown plugin. I wanted the tag to work like this: …
Here's how to format a number in Jinja with commas for thousands, without needing any custom filters or template functions: …
Jinja autoescaping is turned off by default. Coming from Django this frequently catches me out. …