Skip to content

An example (and Go Project Template) using MUXT and HTMX.

License

Notifications You must be signed in to change notification settings

crhntr/muxt-template-module-htmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple MUXT Project Template using HTMX

This is an example muxt hypertext server. See this article for how to use this template: https://go.dev/blog/gonew.

You may also want to see:

  • HTMX: configured for site interactivity
  • Pico CSS: configured to make the site look a bit better by default
  • counterfeiter: used to generate fake Server implementations for testing templates
  • unpkg.com: use the meta query param to get new version integrity values

Developing

Add new html in ./internal/hypertext/templates. Use inline template declarations in the template files using muxt template name semantics then run Go generate to generate a function that maps hypertext concepts to helpful handler methods.

Testing

After developing routes, run go generate ./....

Write handler tests in ./internal/hypertext/server_test.go.

Write template tests in ./internal/hypertext/template_routes_test.go.

Run tests with: go test ./...

Licensing

Please consider removing or replacing the LICENSE file.

About

An example (and Go Project Template) using MUXT and HTMX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages