tylermmorton / torque

`torque` is a web framework for building hypermedia driven applications in Go
https://lbft.dev/
36 stars 3 forks source link

Any todo examples #1

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

Very cool system @tylermmorton

i am also into htmx.

any examples so I can see the whole stack ?

gedw99 commented 1 year ago

https://github.com/tylermmorton/torque/tree/master/.www/docsite Is the dog food example .. nice one

tylermmorton commented 1 year ago

Hey @gedw99, thanks for your interest 👍🏻

https://github.com/tylermmorton/torque/blob/master/.www/docsite/routes/docs/docs.go

This is probably the best example of htmx usage with torque. The VaryRender function is used to render a full html page vs just a fragment for HTMX requests.

Let me know if you have any other questions 😁

gedw99 commented 1 year ago

Cheers :)