The partial below gives me what I need and works fine if I sneak the delimit in (the last line) while ‘hugo serve’ is running, however a fresh build with ‘hugo’ fails with error:
execute of template failed: template: partials/buy_now.html:33:59: executing “partials/buy_now.html” at <delimit .select " | ">: error calling delimit: can’t iterate over
{{ range .Site.Data.products }}
{{ if eq .identifier $.Page.Params.identifier }}
{{ range $index, $element := .options }}
{{ if eq .name "Message" }}
data-item-custom{{ add $index 1 }}-type="textarea"
{{ else }}
data-item-custom{{ add $index 1 }}-name="{{ $element.name }}"
data-item-custom{{ add $index 1 }}-options="{{ delimit $element.select " | "}}"
{{ end }}
{{ end }}
{{ end }}
{{ end }}
Regards
David