1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/modules/caddyhttp/templates
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
..
caddyfile.go caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
frontmatter.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
frontmatter_fuzz.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
templates.go templates: Add pathEscape template function and use it in file browser (#6278) 2024-05-18 12:55:36 -06:00
tplcontext.go templates: Add pathEscape template function and use it in file browser (#6278) 2024-05-18 12:55:36 -06:00
tplcontext_test.go chore: check against errors of io/fs instead of os (#6011) 2024-01-02 08:48:55 +03:00