refactor: moving templates into dir

routes probably can live in main.go for simpler exercises
This commit is contained in:
efim
2024-03-12 05:46:57 +00:00
parent 9c19bd7b6b
commit 78c9bd1d61
5 changed files with 15 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
# List of all .templ files
TEMPL_FILES := $(wildcard *.templ)
TEMPL_FILES := $(shell find templates -type f -name '*.templ')
# Name of the generated file(s) from templ
GENERATED_FILES := $(TEMPL_FILES:.templ=_templ.go)