[SOLVED] What are the differences between {{- vs {{<

Hi I am familiar with the idea that {{ }} is for output and {{< >}} are for partials and {{% %}} if you need to pass something through, however I came across a {{- range… -}} the other day. What is the hyphen for?

From the docs:

… trim the whitespace from either side of a Go tag by including a hyphen (-) and space immediately beside the corresponding {{ or }} delimiter.

The docs have examples that illustrate that nicely :slight_smile:

1 Like

they’re for calling shortcodes.

Thank you! Just what I needed to know!

Opps yes I was meant to say shortcode not partial thanks!