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

Function generate_template

examples/simplewiki/utils.py:43–46  ·  view source on GitHub ↗

Load and generate a template.

(template_name, **context)

Source from the content-addressed store, hash-verified

41
42
43def generate_template(template_name, **context):
44 """Load and generate a template."""
45 context.update(href=href, format_datetime=format_datetime)
46 return template_loader.load(template_name).generate(**context)
47
48
49def parse_creole(markup):

Callers 9

on_showFunction · 0.85
on_editFunction · 0.85
on_logFunction · 0.85
on_diffFunction · 0.85
on_revertFunction · 0.85
page_missingFunction · 0.85
missing_actionFunction · 0.85
page_indexFunction · 0.85
recent_changesFunction · 0.85

Calls 2

loadMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected