Skip to content

Web Framework template using Go for Static Site Generation and Dynamic Rendering of web applications

Notifications You must be signed in to change notification settings

lcor-io/go-web-framework-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

As of now, it supports Static Page Generation and Dynamic Rendering with two different renderers.

First install

go mod tidy
pnpm install  # Or whatever package manager you are using

Launch

Hot reloading should launch automatically in the browser.

make live

To cleanup build files after dev

make clean

TODOS

  • 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"

About

Web Framework template using Go for Static Site Generation and Dynamic Rendering of web applications

Topics

Resources

Stars

Watchers

Forks