patbenatar / rbexy

A Ruby template language and component framework inspired by JSX and React
MIT License
34 stars 5 forks source link

Tags within lambda expressions are whitespace sensitive #69

Open nazamoresco opened 3 years ago

nazamoresco commented 3 years ago

Tags within lambda expressions must be separated by a space from the curly braces in order to function. Works:

{ ->(props) { <p>Tag</p> }}

Doesn't work:

{ ->(props) {<p>Tag</p>}}