Skip to content

Guillembonet/go-templ-htmx

Repository files navigation

go-templ-htmx

This is a simple template of a server-side rendered Go web application using the templ library for HTML templating and the htmx Javascript library.

It also contains the Alpine.js library for some component interactivity and the toastify JS library for toast support.

Usage

If you are going to use tailwind, you need to run npm install before running the project.

To run the application with live reload, install air and use the air command.

Instead, you can also run the application with the go run cmd/main.go command and use go generate ./... to re-generate the templ files and tailwind css file.

Contributing

Feel free to contribute to this project by creating a pull request. An idea for improvement is adding middlewares for authentication.

You can also contribute ideas by creating new issues.

About

Simple template of a server-side rendered Go web application using the templ library for HTML templating and the htmx javascript library.

Resources

License

Stars

85 stars

Watchers

2 watching

Forks

Releases

No releases published

Contributors