While investigating snippets and shortcodes I’ve come across “template” in an example shortcode. Attached code has the following use:
{{- template “tip” . -}}
I can figure out what it does and when I use the code it seems clear but I’d like to read about it in the documentation to be 100% certain on it. Can’t find it anywhere in the docs.
As I said I can understand that if there is no value in the snippet (.Inner) it won’t do what’s inside the define “tip”. I’m not really interested in the specifics of this shortcode I was just investigating shortcodes in general but I hadn’t come across template before.
Is template actually in the Hugo documentation? It appears to be similar to partial but I can’t find it anywhere in the documentation.