Thanks for the in-depth reply, I really appreciate the detail.
I started transitioning from Graphics to Html and noticed a few things.
One you mentioned, was that every node takes two lists, a list of attributes and a list of html elements.
It would be nice to be able to do something like this though:
customHeader = h1 [ text "Some Header" ]
|> attribues customAttributes
It also seems that the ease of use that the Graphics library has can be implemented as functions in Html.
- I don't see a reason why we couldn't define an Html.flow function that mirrored the functionality of the one Graphics library.
- I think it would also be helpful to have functions such as Html.widthOf (not sure if this one is possible currently)
Adding layout and position functions like flow, could possibly make it easier for users, who may not have a lot of css knowledge, to create websites.
Adding helper functions like widthOf would be helpful in easily extending the functionality of the html library (for example, it could be used to create the flow function)