go-fuego / fuego

Golang Fuego - web framework generating OpenAPI 3 spec from source code
https://go-fuego.github.io/fuego/
MIT License
924 stars 47 forks source link

The full-app-gourmet example appears to be broken #183

Closed asahasrabuddhe closed 2 months ago

asahasrabuddhe commented 2 months ago

To Reproduce Steps to reproduce the behavior:

  1. Go to fuego/examples/full-app-gourmet/views/recipe.go
  2. Scroll down to line 100.
  3. templa.Home, templa.HomeProps on line 100, templa.SearchPage and templa.SearchProps on 114 and similar functions below are not defined.

Expected behavior The example in question should build without error.

Screenshots CleanShot 2024-09-01 at 12 44 38@2x

EwenQuim commented 2 months ago

You have to run go generate ./... to generate the templates. It's how the templ lib works.

asahasrabuddhe commented 2 months ago

You have to run go generate ./... to generate the templates. It's how the templ lib works.

Thanks. It seems to be working as expected now. I was running go generate instead of go generate ./.... I will close this issue.