Skip to content

Releases: pelme/htpy

24.10.1

24 Oct 19:13
Compare
Choose a tag to compare
  • Fix handling of Python keywords such as <del> in html2htpy. PR #61.

24.10.0

24 Oct 19:13
Compare
Choose a tag to compare
  • Implement Element.__html__. This avoids double escaping when passed to markupsafe.escape and Django's django.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

09 Sep 09:42
Compare
Choose a tag to compare
  • Raise errors directly on invalid attributes. This avoids cryptic stack traces for invalid attributes. Issue #49 PR #55.

24.8.2

23 Aug 20:29
Compare
Choose a tag to compare

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

16 Aug 18:41
Compare
Choose a tag to compare

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.