Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wait, file-server without arguments does dynamic content (templating)?!

I assume that's just poorly phrased?



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


Only for directory listings I think. And of course you can turn that off as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: