Why do I get the feeling that in a couple of years everyone will switch back to python? Thats great tool. I like the section refresh where in small apps you dont need to do server rendering or keep in cache.
So this is interesting because Symfony framework (for PHP) uses a server side form builder syntax that behaves a bit similar. It seems kind of wrong at first, but when you get used to it, it turns out to be quite enjoyable over writing templates.
This is amazing! I really love this and how you combined it with langchain. I myself do not know HTML and I was wondering if you have any video or recommendation we can watch to learn about HTML so that we can use this framework. Streamlit and gradio as you said aren't production level and I believe fastHTML is still new but it will get to the point where we can build a full stack with pure python.
Well you already can do that with Django or Flask, but these also have got a learning curve. Streamlit and gradio are great, but they never will become "production ready". They are solely for prototyping and creating quick showcases and that is totally okay :)
You trigger modals by changing the state to visible=True on one button click (outside the modal) and visible=false on one button click in the modal itself.
very exciting, always good to have options, thanks for sharing, God Bless
so you're saying that python developers can put "full stack developer" in their resumes now.
exactly what I said, yes :p
@ahmed-elkurdi depends on your needs. Fasthtml comes with picocss
@ahmed-elkurdiTailwind
Bro, there is PyReact as I remember and few others
And you can compile to .wasm QT and Tk
We could always do that, ever heard about django?
This is amazing, thank you I have been looking for something like this.
This is amazing, started to learn python, but already known the front end very well. I will definitely be playing around with this.
Amazing, that’s very useful!! Thanks
Love streamlit it makes coding really easy and fun with its context managers... Hope similar concepts are available in FH too.
I already thought of creating decorators which you might wrap around a function for layouting :)
Why do I get the feeling that in a couple of years everyone will switch back to python? Thats great tool. I like the section refresh where in small apps you dont need to do server rendering or keep in cache.
I doubt that to be honest. I think this will still be a niche project
This is very interesting~
Its simple. I love simple.
Where is the app state saved? In the python process or in the browser?
The HTML is the reflection of the state. HATEOS. Hypermedia as the engine of state.
In memory in the backend in this app.
Nice intro thanks 👍
Nice. Does it support the streaming response from GPT also? Can you make a video on that
For building chatbots I would suggest using frameworks like Chainlit
Can have a look at that if this video gets some views :)
@@freerider6300 Probably the fastest way to creating a prototype, yes
Do a video comparing moderns python web frameworks; reflex, fasthtml, robot, flet, streamlit, nicegui, etc.
I didn't get the part when you put the htmx-tag in the header. Doesn't fasthtml already import this?
In flask, we can do render_templates to direct .html file. Is it possible to do that in FastAPI?
Yes you use the HTMLResponse class for that
helpful thanks!
So this is interesting because Symfony framework (for PHP) uses a server side form builder syntax that behaves a bit similar. It seems kind of wrong at first, but when you get used to it, it turns out to be quite enjoyable over writing templates.
Isnt that closer to jinja?
This is amazing! I really love this and how you combined it with langchain. I myself do not know HTML and I was wondering if you have any video or recommendation we can watch to learn about HTML so that we can use this framework. Streamlit and gradio as you said aren't production level and I believe fastHTML is still new but it will get to the point where we can build a full stack with pure python.
Well you already can do that with Django or Flask, but these also have got a learning curve. Streamlit and gradio are great, but they never will become "production ready". They are solely for prototyping and creating quick showcases and that is totally okay :)
thanks for your content, got a question, do you thinks to create a whole course for fasthtml on udemy?
If the package gets more stable and gets a bigger community, than maybe, but currently not. It´s way too new.
@@codingcrashcourses8533 yeahh i see, but i really hope that you will be the first one, who create a course for this :)
Great video indeed, thanks :) I wonder if it is possible to show how to build edit task route/functionality?
@@MrKhkostadinov i already did that in the introduction :)
please reply i have
Input("Name",id="username")
how to get value of input?
Hooked? Learn design principles/patterns for FastHTML here: ua-cam.com/video/hQWCejlinJc/v-deo.html
Great video, thanks!
Can you share some guidance to use #FastHTML to show a modal or a dialog? Thanks in advance!
You trigger modals by changing the state to visible=True on one button click (outside the modal) and visible=false on one button click in the modal itself.
What if we want to use it for just frontend and use something like django, flask, fasrtapi for backend?
Should probably work with FastAPI, with Flask probably not, but I am not sure.
can we use opensource like Lama?
@@dhoscodhoscovi2957 yes just use the ollama class instead of openai
Danke
how do we contribute to this project?
github.com/AnswerDotAI/fasthtml/blob/main/CONTRIBUTING.md
someone please make a leaflet extension lib for fasthtml!
is it better than streamlit?
It´s just something totally different 🙂. Much more low-level
@@codingcrashcourses8533streamlit is much more low level right ? And how about flask , Django?
Jinja with battery))
Hello, please VS Flask ?
@@fabriziocasula had a similar request already, but not Sure if thats interesting enough
@@codingcrashcourses8533 what do you think! is it better fast html or flask?
PHPython 🤣
useless for production
yeah, proably, just like Streamlit or Gradio, which you also only use for prototyping
Why?