move a bunch of constants from templates to jinja_env.py