From 72cbd2ce2be8966825bbaf6614f0a1df974f99ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 6 Jun 2017 18:29:33 +0200 Subject: [PATCH] Added 'repr' Jinja2 filter. This can help with debugging, for example by showing the difference between a string ID and an ObjectID. --- pillar/web/jinja.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pillar/web/jinja.py b/pillar/web/jinja.py index 205f1bbe..ae097aa9 100644 --- a/pillar/web/jinja.py +++ b/pillar/web/jinja.py @@ -154,5 +154,6 @@ def setup_jinja_env(jinja_env): jinja_env.filters['gravatar'] = pillar.api.utils.gravatar jinja_env.filters['markdown'] = do_markdown jinja_env.filters['yesno'] = do_yesno + jinja_env.filters['repr'] = repr jinja_env.globals['url_for_node'] = do_url_for_node jinja_env.globals['session'] = flask.session