Circle CI Go Templ practice
Golang SSE(Server Side Rendering) with HTMX, Golang, Golang Templ, TailwindCSS(Daisy UI)
-
Node.js v18 or upper
-
Go 1.20 or upper
-
Node.js Dependencies
npm install // or yarn install
-
Golang Dependencies
go mod download
-
Install templ binary
go install github.com/a-h/templ/cmd/templ@latest
-
Check if your
go/bin
directory registered to shell path// ZSH // Append following to the last line of ~/.zshrc export PATH=$PATH:$HOME/go/bin
-
If temple binary are linked, command will be execute as under below
By default VS Code will not trigger completions when editing "string" content, for example within JSX attribute values. Updating the editor.quickSuggestions setting may improve your experience
// VSCode settings.json
{
...
"tailwindCSS.includeLanguages": {
"templ": "html"
},
"editor.quickSuggestions": {
"strings": "on"
}
...
}