feat(aa): add sub templates.
This commit is contained in:
parent
cb441733c0
commit
09a06db803
6 changed files with 63 additions and 35 deletions
11
pkg/aa/templates/include.j2
Normal file
11
pkg/aa/templates/include.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{- define "include" -}}
|
||||
{{- "include" -}}
|
||||
{{- if .IfExists -}}
|
||||
{{ " if exists" }}
|
||||
{{- end -}}
|
||||
{{- if .IsMagic -}}
|
||||
{{ " <" }}{{ .Path }}{{ ">" }}
|
||||
{{- else -}}
|
||||
{{ " \"" }}{{ .Path }}{{ "\"" }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue