You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an extra space after .Foo, which is an easy "mistake" to make (I just did), and not always obvious to spot, esp. since there is only a line number in the error message.
The text was updated successfully, but these errors were encountered:
Thanks for the report! I think this is just a bug in the lexer. I think it should be a valid template to parse. After all, {{ .Foo }} is a valid template, and the mention of - and - never specifies that exactly one space is required.
Fails with:
template: :1: illegal number syntax: "-"
https://play.golang.org/p/VC7LYAI34HU
There is an extra space after
.Foo
, which is an easy "mistake" to make (I just did), and not always obvious to spot, esp. since there is only a line number in the error message.The text was updated successfully, but these errors were encountered: