AnswerDotAI / FastHTML-Gallery

https://gallery.fastht.ml/
59 stars 9 forks source link

infinite scroll added #15

Closed MartinEls closed 2 months ago

MartinEls commented 3 months ago

As discussed, the infinite scroll demo.

I added pandas to the requirements, but I could modify it to generate some data in place to go without the extra dependancy.

Isaac-Flath commented 3 months ago

Yes I think generating the data would be better. While it won't always be feasible, I want these examples to be as easy for people to copy/paste and replicate themselves. So if we can remove the csv file and pandas dependencies that'd be ideal.

If you want, you can use the same data generation logic and columns HTMX did. You may already know this but all their examples you can see their "server" code in the front end if you inspect the page (I just added a screenshot to the HTMX issue). If you have your own ideas for data to generate that'd look good that's fine too.

MartinEls commented 2 months ago

Data generation process is now contained in a small function, very similar to the htmx example

Isaac-Flath commented 2 months ago

Really awesome - thanks so much!