I've been trying to figure out how to do this with elm-markdown objects as
well, but haven't gotten anywhere with it.

On Thu, Jul 28, 2016 at 8:06 AM, Noah Hall <enali...@gmail.com> wrote:

> Hope. This is what I tried first, but toString sadly does things to js
>  objects that make that hard. The rest of the helpers in that file are
> dedicated to trying to get that to work, actually. By replacing and
> collecting fields and properties.
>
>
> On Thursday, July 28, 2016, Peter Damoc <pda...@gmail.com> wrote:
>
>> Will calling toString on a Html element render it or will it print the
>> internal representation?
>>
>> I'm trying to avoid going to Native, if possible.
>>
>>
>>
>> On Thu, Jul 28, 2016 at 2:39 PM, Noah Hall <enali...@gmail.com> wrote:
>>
>>> It turns the internal representation to a string representation. It
>>> doesn't actually render it at that point. It's just the internal
>>> representation.
>>>
>>>
>>> On Thursday, July 28, 2016, Peter Damoc <pda...@gmail.com> wrote:
>>>
>>>> I took quick look and I got here:
>>>>
>>>> https://github.com/eeue56/elm-server-side-renderer/blob/master/src/Helpers.elm#L31
>>>>
>>>> query leads to nodeTypeFromHtml which is actually living in a module
>>>> named HtmlToString :)
>>>>
>>>> Looks like you are still turning it into a string.
>>>> I'm imagining that with the help of that native, the string
>>>> representation is smarter (ready for Json decoding)
>>>>
>>>> Am I missing something or misreading the code?
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Jul 28, 2016 at 1:46 PM, Noah Hall <enali...@gmail.com> wrote:
>>>>
>>>>> My implementation of server-side rendering allows you to do exactly
>>>>> that, without turning it to a string.
>>>>>
>>>>> Checkout how this is implemented ->
>>>>>
>>>>> https://github.com/eeue56/elm-server-side-renderer/blob/master/src/Query.elm#L51
>>>>>
>>>>> On Thu, Jul 28, 2016 at 11:21 AM, Peter Damoc <pda...@gmail.com>
>>>>> wrote:
>>>>> > I need to gather all the class names used in a Html tree generated
>>>>> by the
>>>>> > app.
>>>>> >
>>>>> > Is there a way to do this short of converting the html to a string
>>>>> and
>>>>> > manually parsing it?
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > 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.
>>>>>
>>>>> --
>>>>> 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.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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.
>>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> 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.
>>
> --
> 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.
>

-- 
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.

Reply via email to