Giter Club home page Giter Club logo

Comments (6)

tataraba avatar tataraba commented on June 8, 2024 2

Very cool. I'll take a closer look this weekend and likely find a spot to add this on the main page.

from awesome-python-htmx.

tataraba avatar tataraba commented on June 8, 2024 1

Decided to poke around a bit, and from what I can tell, it appears that they've added classes to handle htmx-specific requests and responses. So a helper class baked in to access request items easier (similar to other solutions that add this via middleware)

https://docs.litestar.dev/2/usage/htmx.html#htmx

And also looks like optional jinja integration:

https://docs.litestar.dev/2/usage/templating.html

I dunno. I think it's notable enough that it's being included as a feature of the framework. Might noodle on it for a bit... If I had a little more time, I'd like to try it out with a toy app as well, but probably worth highlighting anyway.

from awesome-python-htmx.

v3ss0n avatar v3ss0n commented on June 8, 2024 1

Here is from a recent rc1 announcement that describe htmx as part of litestar 2.0 features https://www.reddit.com/r/litestarapi/comments/15izn1s/litestar_fka_starlite_updates_july_23_edition/

I am part of litestar community and a contributor . We have integrated HTMX in main litestar 2.0 as contrib.
Contrib means it is part of litestar releases , and it will be maintained,updated,documented by core members of the team along with proper tutorials. As you can see we have a proper tutorial there https://docs.litestar.dev/2/usage/htmx.html#htmx .

But UI built using HTMX won't be included in litestar because it is not a fullstack framework like django. Litestar's core can be used without contrib but contribs gives it fullstack-like functionalities .

Litestar 2.0 stable will be released in a few days to a week.

Also feel free to contribute if something missing , or if you want to provide a better tutorial , we have very active developer community with great leadership and team culture.

from awesome-python-htmx.

benjamin-kirkbride avatar benjamin-kirkbride commented on June 8, 2024

I'll be honest, I have read the Litestar docs a few times and it's not exactly clear what "HTMX built in" means.

Are there docs or a blog post or something giving specific details and examples of what that means?

from awesome-python-htmx.

v3ss0n avatar v3ss0n commented on June 8, 2024

If you have some questions you can ask us directly at our discord , community is very responsive and active.

from awesome-python-htmx.

benjamin-kirkbride avatar benjamin-kirkbride commented on June 8, 2024

I have started looking into litestar in earnest, and discussing it with @tataraba. We have both expressed interest in exploring it further and possibly blessing it as the "official" recommendation of PyHAT.

@v3ss0n feel free to submit a PR if you have inspiration on where it should go on the awesome page. Otherwise I will take a stab at it.

from awesome-python-htmx.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.