htpy

Generate HTML in Python

MIT License

Downloads
7.9K
Stars
235
htpy - 24.9.1 Latest Release

Published by pelme about 2 months ago

  • Raise errors directly on invalid attributes. This avoids cryptic stack traces for invalid attributes. Issue #49 PR #55.
htpy - 24.8.2

Published by pelme 2 months ago

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.
htpy - 24.8.1

Published by pelme 2 months ago

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.