14 lines
391 B
Smarty
14 lines
391 B
Smarty
|
{{/* vim: set filetype=mustache: */}}
|
||
|
{{/*
|
||
|
Renders a value that contains template.
|
||
|
Usage:
|
||
|
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
|
||
|
*/}}
|
||
|
{{- define "common.tplvalues.render" -}}
|
||
|
{{- if typeIs "string" .value }}
|
||
|
{{- tpl .value .context }}
|
||
|
{{- else }}
|
||
|
{{- tpl (.value | toYaml) .context }}
|
||
|
{{- end }}
|
||
|
{{- end -}}
|