Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonfriesen/todo-templ-htmx-tailwind
Example todo list app that uses templ, htmx, and tailwind
https://github.com/jonfriesen/todo-templ-htmx-tailwind
Last synced: 24 days ago
JSON representation
Example todo list app that uses templ, htmx, and tailwind
- Host: GitHub
- URL: https://github.com/jonfriesen/todo-templ-htmx-tailwind
- Owner: jonfriesen
- Created: 2023-11-27T17:30:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-13T02:54:46.000Z (9 months ago)
- Last Synced: 2024-06-20T20:55:58.137Z (5 months ago)
- Language: Go
- Size: 360 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todo-templ-htmx-tailwind
This is an ultra-simple example app I used to experiment with Go, HTMX, Templ, and Tailwind.
[Templ](https://templ.guide) provides a much better htmp component system than the `html/template` standard library which struggles with even the most primitive composition. Templ on the otherhand does a great job at providing composition as well as accessing functions within go without having to pass them into the template.
[HTMX](https://htmx.org) extends html functionality to replace chunks of html using traditional rest implementations. This removes the need for writing client side javascript in most situations while creating modern web applications.
TailwindCSS and Go are pretty self explanatory.
Some parts of this code was generated by ChatGPT and I think some of the http server structure was borrowed from a common template that's floating around but I can't find the original source.
![example todo list](example/example.gif)