summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/caddyhttp/templates/templates.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go
index a0b7ffe..d67b35b 100644
--- a/modules/caddyhttp/templates/templates.go
+++ b/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.