INNER CODE UNIT · Python
htmy
volfpeter/htmy · htmy/core.py:33
def htmy(self, context: Context) -> Component:
"""Renders the component."""
return self._children
class WithContext(Fragment):
"""
A simple, static context provider component.
"""
__slots__ = ("_context",)
def __init__(self, *children: ComponentType, context: Context) -> None:
"""
Initialization.
Arguments:
*children: The children components to wrap in the given context.