MCPcopy
hub / github.com/django/django / render

Method render

django/template/backends/dummy.py:43–51  ·  view source on GitHub ↗
(self, context=None, request=None)

Source from the content-addressed store, hash-verified

41
42class Template(string.Template):
43 def render(self, context=None, request=None):
44 if context is None:
45 context = {}
46 else:
47 context = {k: conditional_escape(v) for k, v in context.items()}
48 if request is not None:
49 context["csrf_input"] = csrf_input_lazy(request)
50 context["csrf_token"] = csrf_token_lazy(request)
51 return self.safe_substitute(context)

Callers

nothing calls this directly

Calls 2

conditional_escapeFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected