Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
9 additions and
1 deletions
-
modules/caddyhttp/templates/templates.go
|
|
@ -40,7 +40,7 @@ func init() { |
|
|
|
// In addition to the standard functions and Sprig functions, Caddy adds
|
|
|
|
// extra functions and data that are available to a template:
|
|
|
|
//
|
|
|
|
// ##### **`.Args`**
|
|
|
|
// ##### `.Args`
|
|
|
|
//
|
|
|
|
// Access arguments passed to this page/context, for example as the result of a `include`.
|
|
|
|
//
|
|
|
@ -56,6 +56,14 @@ func init() { |
|
|
|
// {{.Cookie "cookiename"}}
|
|
|
|
// ```
|
|
|
|
//
|
|
|
|
// ##### `env`
|
|
|
|
//
|
|
|
|
// Gets an environment variable.
|
|
|
|
//
|
|
|
|
// ```
|
|
|
|
// {{env "VAR_NAME"}}
|
|
|
|
// ```
|
|
|
|
//
|
|
|
|
// ##### `.Host`
|
|
|
|
//
|
|
|
|
// Returns the hostname portion (no port) of the Host header of the HTTP request.
|
|
|
|