MCPcopy
hub / github.com/pallets/werkzeug / render_template

Method render_template

examples/shortly/shortly.py:103–105  ·  view source on GitHub ↗
(self, template_name, **context)

Source from the content-addressed store, hash-verified

101 return short_id
102
103 def render_template(self, template_name, **context):
104 t = self.jinja_env.get_template(template_name)
105 return Response(t.render(context), mimetype="text/html")
106
107 def dispatch_request(self, request):
108 adapter = self.url_map.bind_to_environ(request.environ)

Callers 3

on_new_urlMethod · 0.95
on_short_link_detailsMethod · 0.95
error_404Method · 0.95

Calls 2

ResponseClass · 0.90
renderMethod · 0.80

Tested by

no test coverage detected