Heh, though by not 'first-class' I mean that almost no tool supports it, it 
is a manual pre-compilation step, as well as it has some oddities like 
unable to recurse inside the {}, which is easily worked around (my main 
thing is lack of tool support, elm-make, elm-format, etc...).  But yep, it 
is just the Html.* library in html syntax, though I really wished it 
supported giving tag names that went directly to a given import, I.E. 
instead of `<ul blah>stuff</ul>` going to `Html.ul [blah] [text "stuff"]` I 
wish it went to `ul [blah] [text "stuff"]` that way I could import, say, 
Material.Options.ul or so, or that I could do `import Material.Button as 
Button` and be able to use it some how, some kind of compat layer.  So that 
is what I mean I guess, just it 'only' works with Html, not other Html-'ish 
libraries like elm-mdl (which I do wish followed Html more if it were 
somehow possible).

On Saturday, July 30, 2016 at 7:28:58 AM UTC-6, Rex van der Spuy wrote:
>
> Hi,
>
> "Elmx" is just ordinary Elm functions that happen to have exactly the same 
> names as HTML tags. 
> So, it's 100% first class, if that's what you mean...?
> Those functions just take two parameters: a list of attributes and a list 
> of child nodes.
>
> http://guide.elm-lang.org/architecture/user_input/buttons.html
>
> Personally, for me, Elm makes makes working with HTML "almost nice" (as 
> opposed to "patently horrible", which is what working with plain-vanilla 
> HTML is ... and JSX isn't any better.)
> So, yeah, it's awesome :)
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to