Browse Source

templates: Fix docs for .Args

master
Matthew Holt 3 years ago
parent
commit
a6199cf814
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 4
      modules/caddyhttp/templates/templates.go

4
modules/caddyhttp/templates/templates.go

@ -43,10 +43,10 @@ func init() {
//
// ##### `.Args`
//
// Access arguments passed to this page/context, for example as the result of a `include`.
// A slice of arguments passed to this page/context, for example as the result of a `include`.
//
// ```
// {{.Args 0}} // first argument
// {{index .Args 0}} // first argument
// ```
//
// ##### `.Cookie`

Loading…
Cancel
Save