You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdir hello-world
cd hello-world
nix develop github:a-h/templ
go mod init github.com/mathieupost/hello-world
go get github.com/a-h/templ
Created hello.templ
package main
templ hello(name string) {
<div>Hello, { name }</div>
}
Run templ. templ generate didn't work as my go bin is not in my path, so I did the following:
go get github.com/a-h/templ/cmd/templ
go run github.com/a-h/templ/cmd/templ generate
You've provided some of the requested information in the issue template, but not all which may have affected my ability to reproduce it. The issue template asks for templ info output which includes templ versions - very useful for debugging and making sure you're using the program you think you are, or a sample repo which might point to the issue in another way.
I was trying templ for the first time, but unfortunately I didn't get very far. Following the guide at https://templ.guide/quick-start/creating-a-simple-templ-component I did the following:
hello.templ
templ generate
didn't work as my go bin is not in my path, so I did the following:changing that errored line to
does the trick but of course the generator will overwrite that every time.
The text was updated successfully, but these errors were encountered: