Reason for ruby-style syntax for block params?


#1

The block param syntax in HTMLBars means that a standard handlebars parser will choke, such as the handlebars plugin for the JetBrains editor. I’m curious about the choice to use vertical bars (what I would call ruby-style) rather than just using the identifier, which would then appear more like handlebars syntax.

Comments?


#2

Block params are a Handlebars feature. We added support to the Handlebars parser before implementing in HTMLBars.

tldr; if JetBrains is choking on the syntax, they need to update their parser.


#3

Thanks @rwjblue for the clarification. I see it now in the handlebars 3.0 docs.