This works in Jinja for sure - that's how I'm using it.