Regarding 1. I don't see how the compiler can deduce that a certain union
type you used was suppose to have the meaning of ID and another meaning of
class
One way you can do this manually is to specialize the namespace manually
and then unpack it.
namespace : Namespace String Classes Ids msg
namespace =
Html.CssHelpers.withNamespace "myApp"
{ id, class, classList } =
namespace
Regarding 2. You can generate the CSS on the fly and mount it into a style
element in the head using ports. This will make sure that you will always
have the latest version.
You can take a look here:
https://github.com/pdamoc/elm-powercss-proposal
to see how that could be done.
--
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
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.