Replies: 2 comments 1 reply
-
|
I asked about whether this exists on Reddit, but I am still not sure if it is needed. I do not have enough knowledge to have an opinion on how best to use use SSE with htmy. I am still in the early stage of analysis of htmy. It looks great so far. It's different from Django syntax, which me and my team came from. It reminds me a little of streamlit, but more flexible. I don't like streamlit for complex apps, so htmy looks like a nice alternative. In some ways, it is a similar to the common React paradigm. I'm currently testing htmy with tailwind, daisyui, htmx, fastapi, sse. I'm wondering if there is in-editor syntax completion for the tailwind components inside of the htmy code such as the def hello_world():
return html.div(
html.h1("hello, world"),
class_="text-4xl",
)After this, I'll look at sse. In your fastapi-htmx-tailwind-example, you use SSE, but it's using jinja. I'm looking for an example that shows the status of output of different streams and does not use jinja for proof of the concept. I'm thinking of using data from tavily and openrouter.ai for a prototype as there appear to have free tiers, including the free LLM access in the cloud. If I have to use jinja with FastAPI, i'm actually thinking of using asgi Django because it comes with the database, authentication and dashboards pre-built. As I mentioned, I am at the beginning of my journey of learning about htmy. Thus, I don't have an opinion on the streaming renderer. BTW, is there a short snippet of how I can use htmy with a stream? Thanks for all your work. |
Beta Was this translation helpful? Give feedback.
-
|
The htms Rust create implements a pretty elegant solution using only a tiny bit of JS (a simple webcomponent). Similar behavior could be achieved by adding a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Since
htmyis an async framework, it could be capable of async HTML streaming, which could open up new possibilities for designing components and delivering content to the browser. It would require a moderate rewrite of the current renderer.I'm curious what you think about this, especially if you have experience with HTML streaming.
Beta Was this translation helpful? Give feedback.
All reactions