documentation for get_jinja_env

This commit is contained in:
Christopher Allan Webber 2011-04-17 09:30:10 -05:00
parent 5afb92275c
commit 904f61c298

View File

@ -18,6 +18,13 @@ import jinja2
import mongokit
def get_jinja_env(user_template_path=None):
"""
Set up the Jinja environment, possibly allowing for user
overridden templates.
(In the future we may have another system for providing theming;
for now this is good enough.)
"""
if user_template_path:
loader = jinja2.ChoiceLoader(
[jinja2.FileSystemLoader(user_template_path),