News for hackers. Stuff that matters.
Re:static-server: an HTTP server in Go for static content by e12e on Saturday September 16, 2023 @02:05PM (#37537101)
Wait, file-server without arguments does dynamic content (templating)?!

I assume that's just poorly phrased?

Re:static-server: an HTTP server in Go for static content by skrebbel on Saturday September 16, 2023 @04:04PM (#37538171)
Only for directory listings I think. And of course you can turn that off as well.
Re:static-server: an HTTP server in Go for static content by mholt on Saturday September 16, 2023 @06:31PM (#37539448)
To clarify, you do need to use --templates to enable template evaluation on the static files.

But for the `caddy respond` command, minimal templates are available by default; see the docs here: https://caddyserver.com/docs/command-line#examples