Fix for missing $root

$root is used in $root.Files.Get and needs to be defined

Signed-off-by: Michel Belleau <michel.belleau@malaiwah.com>
pull/5323/head
Michel Belleau 6 years ago committed by Michel Belleau
parent 44782e19b6
commit fdbbcab3b3

@ -129,6 +129,7 @@ You have multiple options with Globs:
Or
```yaml
{{ $root := . }}
{{ range $path, $bytes := .Files.Glob "foo/*" }}
{{ base $path }}: '{{ $root.Files.Get $path | b64enc }}'
{{ end }}

Loading…
Cancel
Save