caddy/modules/caddyhttp/templates
Stéphane Mourey 2943c41884
templates: Add fileStat function (#5497)
* Add isDir template function

* Update modules/caddyhttp/templates/tplcontext.go

Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* Fix funcIsDir return value on error

* Fix funcIsDir return false when root file system not specified

* Add stat function, remove isDir function

* Remove isDir function (really)

* Rename stat to fileStat

---------

Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2023-04-24 10:36:37 -06:00
..
caddyfile.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07: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 reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
tplcontext.go templates: Add fileStat function (#5497) 2023-04-24 10:36:37 -06:00
tplcontext_test.go templates: Add humanize function (#4767) 2022-05-24 19:47:08 -04:00