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

Method render

django/template/base.py:1164–1172  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

1162 return "<Variable Node: %s>" % self.filter_expression
1163
1164 def render(self, context):
1165 try:
1166 output = self.filter_expression.resolve(context)
1167 except UnicodeDecodeError:
1168 # Unicode conversion can fail sometimes for reasons out of our
1169 # control (e.g. exception rendering). In that case, we fail
1170 # quietly.
1171 return ""
1172 return render_value_in_context(output, context)
1173
1174
1175# Regex for token keyword arguments

Callers

nothing calls this directly

Calls 2

render_value_in_contextFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected