Skip to content

Commit 72fa859

Browse files
committed
better name
1 parent fc48692 commit 72fa859

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

htmlgenerator/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ def render(self, context: dict):
214214
yield from self.render_children(context)
215215

216216

217-
class Context(BaseElement):
217+
class WithContext(BaseElement):
218218
"""
219-
Pass additional variables into the context.
219+
Pass additional names into the context.
220220
The additional context names are namespaced to the current element and its child elements.
221-
It can be helpfull for shadowing or aliasing a name in the context.
222-
This element is required because context is otherwise only set by the render function and the loop-variable of Iierator
221+
It can be helpfull for shadowing or aliasing names in the context.
222+
This element is required because context is otherwise only set by the render function and the loop-variable of Iterator which can be limiting.
223223
"""
224224

225225
additional_context: dict = {}

0 commit comments

Comments
 (0)