gnat / surreal

🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!
https://gnat.github.io/surreal/example.html
MIT License
1.2k stars 24 forks source link

Add HTMX edit row example #5

Closed davidwilde closed 12 months ago

davidwilde commented 12 months ago

I was the OP of this reddit post - https://www.reddit.com/r/htmx/comments/16nui5k/concerned_hypersrcipt_could_be_the_barrier_to/ in which I argued that Hyperscript is offputting for people transitioning from the Javascript world having one more thing to learn. In one of the comments for the post, I was made aware of surreal. I thought it looked excellent so I gave it a whirl by modifying the Edit Row example on the HTMX site to work with surreal instead of hyperscript

gnat commented 12 months ago

Hey @davidwilde thank you for the wicked example! I've been considering creating a separate awesome-surreal repo to link to projects such as these or an Awesome Surreal section on the main repo.

Feel free to host this on your own, and I will :100: attribute/link to it. May I suggest surreal-htmx-go? Keeps it google-able.

Also if you wish to keep your repo extra small you can always pull in the CDN: https://cdn.jsdelivr.net/gh/gnat/surreal/surreal.js

davidwilde commented 12 months ago

sweet. I'm going to do that. Mainly just wanted to grab your attention with the PR

davidwilde commented 12 months ago

I've moved this to https://github.com/davidwilde/surreal-htmx-go and followed your recommendation on using the CDN

gnat commented 12 months ago

Amazing. Kicked off the awesome-surreal list and added your project.

Thanks again @davidwilde !!

davidwilde commented 12 months ago

@gnat, I actually read a bit more of your documentation and improved my example by using trigger