Does the trimming {{- . -}} brackets slow build?

It’s a honest question, now that Hugo can minify HTML outputs, they seem less and less useful, yet, is it worth removing them/stop using them at all outside of string manipulation etc… ?

Thanks.

Also, they do make nice little faces:

{{- . -}}
1 Like

For folks who don’t minify their HTML output, they’re useful for creating nicely formatted HTML (but I’m telling you things you already know)

1 Like

Yes there are useful in many cases. I shoudn’t have derailed my own question with this sentence :slight_smile:

I’m wondering if they have any impact on build time, which is always hard to verify.

I would suspect it to be neglible in the big context. But I think it muddles up the templates and I suspect that I have used it more than I need (when In doubt, add a “-”).

2 Likes