testing jinja2 filters on the command line
I just wanted to figure out what xmlattr did and how it worked.
{{ {'class': 'John the %!& Baptist'|striptags|lower|replace(' ','-')|urlencode|replace('%', '')}|xmlattr }}
Long story short, i was using Django using its built-in filters, not Jinja2, and should have simply used |slugify
.