Skip to content

Commit

Permalink
Fix the environment of the jinja2 templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoalejo committed Feb 6, 2013
1 parent 603ea4f commit 0340539
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def dispatch(self):

@webapp2.cached_property
def jinja2(self):
return jinja2.get_jinja2(app=self.app)
return jinja2.Jinja2(app=self.app, config={
'template_path': '.',
})

def render(self, template, **kwargs):
self.response.headers.add('X-UA-Compatible', 'chrome=1')
Expand Down

0 comments on commit 0340539

Please sign in to comment.