2 ms·
Could you go into more details about the live reload (I use air + Echo), what hot reload server do you use for templ? And what about "embed with build tags."?
by KingOfCoders 2y ago
Could you go into more details about the live reload (I use air + Echo), what hot reload server do you use for templ?
And what about "embed with build tags."? I embed every build now.
- sureglymop 2y agoI use the "live reload with other tools" as it is described in the templ docs [0]. Basically, templ will start a live reload server in "proxy mode". Other tools can then request a reload by notifying the proxy. I started with the makefile described in the docs. But I also have tailwind in watch mode, esbuild builds and more. [0]: https://templ.guide/commands-and-tools/live-reload-with-other-tools https://templ.guide/commands-and-tools/live-reload-with-othe...