Exemple #1
0
 def render_template(self, template, **params):
     """Renders a specified html template passing in params and the user profile if available"""
     j = Registry.get('jinja_env')
     t = j.get_template(template)
     return t.render(params, profile = self.profile, user_url = self.user_url)
Exemple #2
0
 def render_template(self, template, **params):
     j = Registry.get("jinja_env")
     t = j.get_template(template)
     return t.render(params)