Closed rawkode closed 8 years ago
This problem is related to Golang templates AFAIK, I've also tried '{{- -}}' and it didn't work.
I'll track the cause of the problem and see why {{- -}}
isn't working.
Thanks for reporting @rawkode :+1:
Awesome - thanks.
I'd be keen to get involved, it's an awesome project. If you can tag some issues / feature requests as "low hanging fruit" or something, that would help me ease in :smile:
Cheers
Thanks for the offer!
I'll go over the code base and create starter issues for possible enhancements.
In the meantime feel free to report the smallest problems you have :smile:
I've investigated the problem and the {{- -}}
syntax requires Go >= 1.6.
I updated the build version, starting form 0.3.0
, only Go 1.6 will be supported.
You can compile boilr from source to get this feature, if you don't want to wait for 0.3.0
When composing slightly more complicated templates, there's no way to trim the whitespace.
Example:
Outputs:
I know
| trimSpace
exists, but not when usingtemplate
. Also go template support{{- -}}
- but that doesn't seem to work with boilr?Please advise when you can - I'm assuming maybe I'm doing something wrong :)