Documentation about functions inside the file_server template?

Where can I find Documentation about the functions used in the HTML of the template file used by file_server browse?

I think this is what you’re looking for, but I’m not sure if all these functions are defined in the file_server templates (see discussion in V2 - http.handlers.templates functions in file_server browse template?) . These docs are for the templates directive, i.e. the generalized templates. That said, all the sprig functions are supported as noted.

FYI you can find the default browse template here in the code:

https://github.com/caddyserver/caddy/blob/master/modules/caddyhttp/fileserver/browsetpl.go

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.