Skip to content

v3.0.0 and announcing holm

Choose a tag to compare

@volfpeter volfpeter released this 26 Sep 08:41
6b9770a

What's Changed

Major changes

  • All Jinja-related code now lives in fasthx.jinja and can only be imported from that package.
  • *HTMLRenderer types have been renamed to *RenderFunction to prepare for rendering non-HTML content.
  • The RenderFunction type has changed: Response is no longer allowed as the return value.
  • Updated the required htmy version to >=0.8.1.
  • The @hx() and @page() decorators of the htmy integration no longer require a component selector. If not provided, it is assumed the route returns a component that can be rendered as is.

The detailed upgrade guide can be found here: https://volfpeter.github.io/fasthx/migrations/2-to-3/

** Related news

I've recently release holm, a web development framework that brings the Next.js developer experience to Python. It is built with FastAPI, htmy, and FastHX, and it aims to give you the most convenient server side rendering experience on top of the "FastHX stack". You can check out the details here: https://volfpeter.github.io/holm/

Full Changelog: v2.3.3...v3.0.0