1. Setup
A new module, and the two dependencies: astwerk itself, and templ — astwerk pages are templ components, and the CLI compiles .templ files to Go.
go
mkdir mysite && cd mysite
go mod init example.com/mysite
go get github.com/LukasDerBaum42/astwerk github.com/a-h/templThat is the entire setup. There is no config file, no project scaffold, and no hidden convention scanner — the next step is writing the site.
What does the templ CLI do?
astwerk pages are templ components; templ generate compiles the .templ files to Go so go run can build the site.
What does go get github.com/LukasDerBaum42/astwerk do?
go get records the module as a dependency in go.mod and downloads it. astwerk is a library, not a CLI — you never run it directly.