mbylstra / html-to-elm

An online tool for converting HTML to elm-html. Go to
http://mbylstra.github.io/html-to-elm/
395 stars 23 forks source link

Use the elm-html style function for style attributes #6

Open mbylstra opened 8 years ago

mbylstra commented 8 years ago

Currently, rather than using the style function, the attribute function is being used for style attributes.

currently

<div style="background-color: red;"></div>

outputs as

div [ attribute "style" "background-color: red;" ]
    []

but

div [ style [("background-color", "red") ]
    []

would be much nicer