hi there,
as probably has been discussed here several times, there seem to be a problem in mixing partials with shortcodes. If you try to do so, you get error messages like this:
parse failed: template: partials/header.html:34: unexpected “<” in command.
(Similar behaviour when you try to use the {{% %}}-syntax for shortcodes).
We are also using helm charts to configure our kubernetis setups. helm charts as hugo both are based on go-template language (at least I saw quite a few similarities between those two kinds of files).
And in helm-charts there it seems to be possible to create reusable data to be used in several places of a kubernetes configuration by
{{ define “myFunction” . }}
…
{{ end }}
We have a similar construct with blocks in hugo… Is there a way to create reusable, proprietery functions to share template code between shortcodes and/or partials?
Thanx for your help.