Template for a Site Generation Framework in Go, with as little as JavaScript as possible. If one doesn't need Tailwind for css, you can even remove JS from the build steps entirely.
- Web Framework - Fiber
- HTML generation - Templ
- CSS - TailwindCSS
- Interactivity - htmx
As of now, it supports Static Page Generation and Dynamic Rendering with two different renderers.
go mod tidy
pnpm install # Or whatever package manager you are using
Hot reloading should launch automatically in the browser.
make live
To cleanup build files after dev
make clean
-
More route examples, with both SSG and Dynamic rendering -
Example of a Templ component using htmx - Initial properties at build time
- Dynamic routing system using FS ?
- Persistent cache files between restarts. Dig into Fiber cache middleware
- Layout composition on children
- i18n
- Add template to be "PWA ready"