An enum type for Jinja templates

I'm using the very nice Flask framework for a small project of mine (I'll blog about in few weeks) and started using the very handy Jinja templating engine.

At some point, I needed to have a kind of enum type in the engine, sometihng I can test with

{% if status …
more…