Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
No need to install (although I would), you can always use something like: go run github.com/a-h/templ/cmd/templ@latest generate If you use VSCode it may be worth you looking into devcontainers as you can encapsulate the dev environment per project. https://containers.dev/ Here's an example devcontainer config you might use for dev purposes with templ: {
"name": "Go",
"image": "mcr.microsoft.com/devcontainers/go:1-1-bookworm",
"features": {
"ghcr.io/jungaretti/features/make:1": {},
"ghcr.io/devcontainers-extra/features/go-task:1": {},
"ghcr.io/devcontainers-extra/features/temporal-cli:1": {}
}
} The config adds 3 'features' for templ, task and make and installs them ready to use within the container. The base container already contains go and you could easily add tailwind as another feature if required. |
Beta Was this translation helpful? Give feedback.
-
Perhaps you could clarify what you're looking for? |
Beta Was this translation helpful? Give feedback.
-
Add it or make the command automatically run on every go run
Beta Was this translation helpful? Give feedback.
All reactions