Fixed error in docs for file access

$path.base gives the error "can't evaluate field base in type string", it should be "base $path"
pull/4207/head
Michael Huttner 7 years ago committed by Sebastien Plisson
parent 589e1f30fa
commit 367435ae11

@ -130,7 +130,7 @@ Or
```yaml ```yaml
{{ range $path, $bytes := .Files.Glob "foo/*" }} {{ range $path, $bytes := .Files.Glob "foo/*" }}
{{ $path.base }}: '{{ $root.Files.Get $path | b64enc }}' {{ base $path }}: '{{ $root.Files.Get $path | b64enc }}'
{{ end }} {{ end }}
``` ```

Loading…
Cancel
Save