Added 'repr' Jinja2 filter.
This can help with debugging, for example by showing the difference between a string ID and an ObjectID.
This commit is contained in:
parent
3d273d4284
commit
72cbd2ce2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user