log / setup air config for templ

To be able air to work with templ, we need change some configuration in .air.toml

# ...

# add templ generate
cmd = "templ generate && go build -o ./tmp/main ."

# ...

# add templ generated file in exclude regex
exclude_regex = [".*_templ.go"]

# ...

# add file with extension .templ to watched
include_ext = ["go", "tpl", "tmpl", "templ", "html"]
Written on 2024-02-21 14:21:00 +0700 Edited on 2024-03-11 04:02:00 +0700