MCPcopy
hub / github.com/pallets/jinja / get_all

Method get_all

src/jinja2/runtime.py:251–260  ·  view source on GitHub ↗

Return the complete context as dict including the exported variables. For optimizations reasons this might not return an actual copy so be careful with using it.

(self)

Source from the content-addressed store, hash-verified

249 return {k: self.vars[k] for k in self.exported_vars}
250
251 def get_all(self) -> t.Dict[str, t.Any]:
252 """Return the complete context as dict including the exported
253 variables. For optimizations reasons this might not return an
254 actual copy so be careful with using it.
255 """
256 if not self.vars:
257 return self.parent
258 if not self.parent:
259 return self.vars
260 return dict(self.parent, **self.vars)
261
262 @internalcode
263 def call(

Callers 5

derivedMethod · 0.95
__repr__Method · 0.95
_renderMethod · 0.80
f_allFunction · 0.80
get_template_localsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected