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/4414/head
Michael Huttner 6 years ago committed by GitHub
parent bda27b6f2a
commit 1b955e63f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save