mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
Updated v2: Documentation (markdown)
parent
7cbbacdea2
commit
b072649ee8
@ -48,14 +48,14 @@ Features which are available in Caddy Enterprise are indicated with 🏢
|
||||
- [http.matchers.starlark_expr](#httpmatchersstarlark_expr)
|
||||
- [http.matchers.file](#httpmatchersfile)
|
||||
- [http/servers/handle](#httpservershandle)
|
||||
- Middleware (non-terminal handlers):
|
||||
- Middleware (non-terminating handlers):
|
||||
- [http.handlers.headers](#httphandlersheaders)
|
||||
- [http.handlers.rewrite](#httphandlersrewrite)
|
||||
- [http.handlers.markdown](#httphandlersmarkdown)
|
||||
- [http.handlers.request_body](#httphandlersrequest_body)
|
||||
- [http.handlers.encode](#httphandlersencode)
|
||||
- [http.handlers.templates](#httphandlerstemplates)
|
||||
- Terminal handlers:
|
||||
- Terminating handlers:
|
||||
- [http.handlers.static_response](#httphandlersstaticresponse)
|
||||
- [http.handlers.file_server](#httphandlersfile_server)
|
||||
- [http.handlers.reverse_proxy](#httphandlersreverse_proxy)
|
||||
@ -872,7 +872,7 @@ Compresses responses on-the-fly.
|
||||
|
||||
##### http.handlers.templates
|
||||
|
||||
Interprets the response as a template body, then executes the template and writes the response to the client. Template functions will be documented soon. There are functions to include other files, make sub-requests (virtual HTTP requests), render Markdown, manipulate headers, access the request fields, manipulate strings, do math, work with data structures, and more.
|
||||
Interprets the response as a template body, then executes the template and writes the response to the client. [There are functions](https://github.com/caddyserver/caddy/wiki/v2:-Templates) to include other files, make sub-requests (virtual HTTP requests), render Markdown, manipulate headers, access the request fields, manipulate strings, do math, work with data structures, and more.
|
||||
|
||||
```json
|
||||
{
|
||||
@ -887,6 +887,8 @@ Interprets the response as a template body, then executes the template and write
|
||||
- `mime_types`: The MIME types for which to render templates. It is important to use this if the route matchers do not exclude images or other binary files.
|
||||
- `delimiters`: The template action delimiters.
|
||||
|
||||
See [all available template actions](https://github.com/caddyserver/caddy/wiki/v2:-Templates).
|
||||
|
||||
|
||||
##### http.handlers.static_response
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user