Weba

Latest version: v0.2.30

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.2.18

<!-- Release notes generated using configuration in .github/release.yml at main -->

- [feat](feat: Add src_root_tag feature to select root tag from source HTML)[feat: Add src_root_tag feature to select root tag from source HTML](https://github.com/cj/weba/commit/1186d5fc82ae4144bc5751fde51b1bb1375eba9a)
- [feat: Add Sourcery pre-commit hook](https://github.com/cj/weba/commit/77450a5a7a051b3d9c798c3e6ce01b0e9fa950a8)
- [feat: Enhance Component class with more flexible src handling and new error types](https://github.com/cj/weba/commit/29e7b0eef3893202c66084f8d7bdee9d16aabb55)

**Full Changelog**: https://github.com/cj/weba/compare/v0.2.17...v0.2.18

0.2.17

<!-- Release notes generated using configuration in .github/release.yml at main -->

- refactor: better root_tag logic

**Full Changelog**: https://github.com/cj/weba/compare/v0.2.15...v0.2.17

0.2.16

<!-- Release notes generated using configuration in .github/release.yml at main -->

- feat: added `replace_root_tag` method, and also an option for `tag(root_tag=True)` / `tag("selector", root_tag=True)`, which allows you to replace the root_tag of a component.

**Full Changelog**: https://github.com/cj/weba/compare/v0.2.14...v0.2.16

0.2.14

<!-- Release notes generated using configuration in .github/release.yml at main -->

- Made sure all trailing underscores are removed in attr keys. `str(ui.script(async_=True))` becomes `<script async></script>`

**Full Changelog**: https://github.com/cj/weba/compare/v0.2.13...v0.2.14

0.2.13

<!-- Release notes generated using configuration in .github/release.yml at main -->

- feat: Add component content replacement and tag decorator functionality
python
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**: https://github.com/cj/weba/compare/v0.2.12...v0.2.13

0.2.12

<!-- Release notes generated using configuration in .github/release.yml at main -->

- `current_parent` is now a more descriptive `current_tag_context`
- added a context manager method `no_tag_context` if you want to temporarily disable tag context tracking

**Full Changelog**: https://github.com/cj/weba/compare/v0.2.11...v0.2.12

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.