What is the difference between {{ and {{-

I’ve noticed in themes that sometimes the {{- … -}} dash is added to the curly braces. What purpose do they serve? Are the dashes important to be added?

The dashes remove whitespace in Go templates. See:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.