`*/ }}` would cause an error actually, one must use `*/}}` or `*/ -}}`. Not obvious at all.
pull/4207/head^2
Erik Sundell 8 years ago committed by GitHub
parent 68f7b5ed20
commit af53b0166c

@ -155,7 +155,7 @@ Template comments should be used when documenting features of a template, such a
```yaml
{{- /*
mychart.shortname provides a 6 char truncated version of the release name.
*/ }}
*/ -}}
{{ define "mychart.shortname" -}}
{{ .Release.Name | trunc 6 }}
{{- end -}}

Loading…
Cancel
Save