elmx
elmx copied to clipboard
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
Fix bug #16 This: ``` main = Hi ``` should become ``` main = Html.node "div" [] [Html.text "Hi"] ``` and this: ``` main = foo ``` should become ```...
```html foo ``` produces ```elm Html.node "p" [] [Html.text " foo "] ``` (error: unexpected `\n`) of course, that could be fixed with ```elm Html.node "p" [] [Html.text """ foo...
I just replaced `"` with `"""`
this is a great effort, thank you! isn't it worth considering using something like haml or slim syntax? the jsx is perceived by many is kinda "messy", while haml/slim is...
Hi, thank You for the super library! I really want to use it, but I don't know how to solve incompatibility with other IDE extensions - I tried: 1. **Visual...
Hi, great library! Sometimes I'd like to nest Elmx syntax, for example when mapping over children: ``` html {notes |> List.map (\ note -> {view note})} ``` but this doesn't...