In the context of creating a svg parser, the issues from Html-to-Elm led me to https://github.com/Bogdanp/elm-combine and https://github.com/toburger/elm-xml-parser. To create a simple svg parser, could I use elm-xml-parser's Xml.Parser module and pattern match svg elements to create elm-svg elements?
torsdag 2. juni 2016 11.44.43 UTC+2 skrev Peter Damoc følgende: > > Take a look at > https://github.com/mbylstra/html-to-elm > > it works with SVG too. > > On Thu, Jun 2, 2016 at 11:31 AM, Håkon Rossebø <hakonr...@gmail.com > <javascript:>> wrote: > >> Fetching the svg file with http is ok, but I would then create a svg >> decoder/parser to read the svg xml into an elm-svg node tree, is there any >> existing decoders/projects available? >> >> mandag 30. mai 2016 17.22.09 UTC+2 skrev Max Goldstein følgende: >> >>> Make an HTTP request in init, and have a Msg where they get added to the >>> model. If you work through some tutorials (links conspicuously absent!) on >>> the Elm Architecture, this should become pretty clear. >>> >> -- >> 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 elm-discuss...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > 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 elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.