Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get_and_concat.html « funcs « partials « layouts - github.com/bep/docuapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5dfacb5cf0f92c545d7456e3a5ae6f4c0345b543 (plain)
1
2
3
4
5
6
7
8
9
10
{{ if not .target  }}{{ errorf "Missing target"}}{{ end }}
{{ if not .imports  }}{{ errorf "Missing imports"}}{{ end }}
{{ $resources := slice }}
{{ range .imports }}
{{ $resource := resources.Get . }}
{{ if $resource }}
{{ $resources = $resources | append $resource }}
{{ end }}
{{ end }}
{{ return ($resources | resources.Concat .target) }}