caddy/modules/caddyhttp/fileserver
deneb f98f449f05
templates: Add pathEscape template function and use it in file browser (#6278)
* use url.PathEscape in file-server browse template

- add `pathEscape` to c.tpl.Funcs, using `url.PathEscape`
- use `pathEscape` in browse.html in place of `replace`

* document `pathEscape`

* Remove unnecessary pipe of img src to `html`
2024-05-18 12:55:36 -06:00
..
testdata fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
browse.go fileserver: Improve Vary handling (#5849) 2024-04-19 13:43:13 -06:00
browse.html templates: Add pathEscape template function and use it in file browser (#6278) 2024-05-18 12:55:36 -06:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
browsetplcontext.go Fix typos (#6311) 2024-05-10 08:08:54 -06:00
caddyfile.go fileserver: read etags from precomputed files (#6222) 2024-04-13 06:49:55 -04:00
command.go fileserver: Browse can show symlink target if enabled (#5973) 2024-02-06 04:31:26 +00:00
matcher_test.go caddyfile: Populate regexp matcher names by default (#6145) 2024-04-17 12:19:14 -06:00
matcher.go caddyhttp: upgrade to cel v0.20.0 (#6161) 2024-03-13 21:32:42 -06:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
staticfiles.go fileserver: Set "Vary: Accept-Encoding" header (see #5849) 2024-04-26 19:38:45 -06:00