Skip to content

v0.2.13

Choose a tag to compare

@cj cj released this 03 Jan 08:57
· 62 commits to main since this release
7123e68
  • feat: Add component content replacement and tag decorator functionality
def test_component_replace_with():
    class HelloComponent(Component):
        src = "./layout.html"

        @tag("body > main")
        def main(self):
            pass

        def render(self):
            self.main = ui.raw("<main>Hello</main>")

    with HelloComponent() as html:
        html.main.append(ui.text(", World!"))

    assert "Hello, World!" in str(html)

Full Changelog: v0.2.12...v0.2.13