mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 21:16:15 -04:00
docs: Update links, and change references of v2 branch to master
This commit is contained in:
parent
ee55602b14
commit
e8e0ec148b
5 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ title: templates (Caddyfile directive)
|
|||
|
||||
# templates
|
||||
|
||||
Executes the response body as a [template](/docs/json/apps/http/servers/errors/routes/handle/templates/) document. Templates provide functional primitives for making simple dynamic pages. Features include HTTP subrequests, HTML file includes, Markdown rendering, JSON parsing, basic data structures, randomness, time, and more.
|
||||
Executes the response body as a [template](/docs/modules/http.handlers.templates) document. Templates provide functional primitives for making simple dynamic pages. Features include HTTP subrequests, HTML file includes, Markdown rendering, JSON parsing, basic data structures, randomness, time, and more.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
|
|
@ -146,7 +146,7 @@ file {
|
|||
|
||||
By files.
|
||||
|
||||
- `root` defines the directory in which to look for files. Default is the current working directory, or the `root` [variable](https://caddyserver.com/docs/json/apps/http/servers/errors/routes/handle/vars/) (`{http.vars.root}`) if set.
|
||||
- `root` defines the directory in which to look for files. Default is the current working directory, or the `root` [variable](/docs/modules/http.handlers.vars) (`{http.vars.root}`) if set.
|
||||
- `try_files` checks files in its list that match the try_policy.
|
||||
- `try_policy` specifies how to choose a file. Default is `first_exist`.
|
||||
- `first_exist` checks for file existence. The first file that exists is selected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue