pzavolinsky / elmx

A tiny precompiler that takes an Elm program with embedded HTML and desugars the HTML into elm-html syntax. Elmx is to Elm what React's JSX is to Javascript
MIT License
351 stars 11 forks source link

Quote text expression if it is a function call #13

Closed cxa closed 7 years ago

cxa commented 7 years ago

Then we can write

<h1>{=toString what}</h1>

instead of

<h1>{=(toString what)}</h1>
pzavolinsky commented 7 years ago

Hi @cxa, thanks for this contrib!

Sorry it took me so long to review.

It's merged and pushed as elmx@2.0.1. I also updated the Atom package and the live cheetshet.

Cheers!