Releases: pelme/htpy
Releases Β· pelme/htpy
24.10.1
24.10.0
- Implement
Element.__html__
. This avoids double escaping when passed tomarkupsafe.escape
and Django'sdjango.utils.html.conditional_escape
. PR #65. - Raise errors directly on invalid children. This avoids cryptic stack traces. PR #56.
- Raise TypeError rather than ValueError when invalid types are passed as attributes or children. PR #59.
24.9.1
24.8.2
What's Changed
- Added support for passing data between components via Context. See the Usage docs for more information. PR #48.
- Added Django template backend. The Django template backend allows you to integrate htpy components directly with Django. See the docs for more information. PR #37.
24.8.1
What's Changed
- Added the
comment()
function to render HTML comments. Documentation / Issue
#42. - Run tests on Python 3.13 RC (no changes were required, earlier versions should work fine too). PR #45.
- Attributes that are not strings will now be rejected runtime. Attributes have been typed as strings previously but this is now also enforced during runtime. If you need to pass non-strings as attribute values, wrap them in str() calls.