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