Unverified Commit 1b955e63 authored by Michael Huttner's avatar Michael Huttner Committed by GitHub

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"
parent bda27b6f
......@@ -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 }}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment