sponsfreixes / jinja2-fragments

Render Jinja2 template block as HTML page fragments on Python web frameworks.
MIT License
253 stars 15 forks source link

Add litestar support #26

Closed tataraba closed 10 months ago

tataraba commented 10 months ago

Decided to add Litestar support by adding to the HTMXTemplate response class. I've added the example on the README, but let me know if you'd like a different approach.

tataraba commented 10 months ago

Okay, I made the changes and fixed a couple type annotations in the process (the return type for Litestar templates should just be Template).