Skip to content

An exploration of HTMX with Go templates

Notifications You must be signed in to change notification settings

robwilkerson/explore-htmx-go

Repository files navigation

Todo List

An exploration of Go templates, HTMLX, and just a touch of hyperscript.

This is a functional prototype. It is not, nor does it pretend to be, production-ready code.

Huge hat tip to the Golang app skeleton provided by the folks at Ad Hoc that made the app server code so much more legible than my first pass, but still kept things dead simple and easy to develop against. It was a nice piece of kit for a simple exploration like this.

Pre-requisites

  • Go 1.19 or better

  • SQLite3

  • direnv

  • modd

      go install github.com/cortesi/modd/cmd/modd@latest
    

Installation

  1. Clone this repo

  2. Install the environment variables; this cannot be done from the install script because the script has no access to the operating shell environment (this trips me up more often than I'd like to admit)

     cp .envrc.example .envrc && direnv allow .
    
  3. Run the install script from the project root

     bash ./install
    

About

An exploration of HTMX with Go templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published