Lines Matching refs:parent
104 parent = vars
106 parent = dict(globals or (), **vars)
108 # if the parent is shared a copy should be created because
111 parent = dict(parent)
114 parent[key] = value
116 environment, parent, template_name, blocks, globals=globals
150 The context is immutable. Modifications on :attr:`parent` **must not**
166 parent: t.Dict[str, t.Any],
171 self.parent = parent
187 """Render a parent block."""
194 f"there is no parent block called {name!r}.", name="super"
240 if key in self.parent:
241 return self.parent[key]
255 return self.parent
256 if not self.parent:
258 return dict(self.parent, **self.vars)
322 return name in self.vars or name in self.parent
359 f"there is no parent block called {self.name!r}.", name="super"