INNER CODE UNIT · Python

__init__

volfpeter/htmy · htmy/core.py:24

    def __init__(self, *children: ComponentType) -> None:
        """
        Initialization.

        Arguments:
            *children: The wrapped children.
        """
        self._children = children

    def htmy(self, context: Context) -> Component:
        """Renders the component."""
        return self._children


class WithContext(Fragment):
    """
    A simple, static context provider component.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…