log/setup air config for templ
To be able air to work with templ, we need change some configuration in .air.toml
1# ...
2
3# add templ generate
4cmd = "templ generate && go build -o ./tmp/main ."
5
6# ...
7
8# add templ generated file in exclude regex
9exclude_regex = [".*_templ.go"]
10
11# ...
12
13# add file with extension .templ to watched
14include_ext = ["go", "tpl", "tmpl", "templ", "html"]