Creating a YAML parser is going to be a ton more work than you bargained for. 
That spec is hairy! That said, it probably would be the best way.

But there are workarounds! Since you're rendering the YAML in Jekyll anyway, is 
there a conversion function to JSON you could use? Or, could you add a step in 
your build process to convert the comments as files to load?

On Jan 17, 2017, 8:51 AM -0600, Zinggi <schrott57...@gmail.com>, wrote:
> Probably not the answer you'd like, but there doesn't exist one.
> Please do us all a favor and create one yourself ;) (probably with the help 
> of this (http://package.elm-lang.org/packages/Bogdanp/elm-combine/latest).)
> If that's too much effort, you can use some JS lib 
> (https://www.npmjs.com/search?q=yaml) and use ports to bring it over to elm.
>
>
> On Tuesday, 17 January 2017 13:44:41 UTC+1, fxmy wang wrote:
> > Well short story would be: I need to parse some yaml. =)
> >
> > Long version: I'm using commentit.io (https://commentit.io) for storing 
> > comments on my handmade blog (powered by Elm of course). And commentit.io 
> > (http://commentit.io) stores comments the jekyll way. Hence in format of 
> > yaml like this 
> > (https://github.com/fxmy/fxmy.github.io/blob/master/_data/comments.yml).
> >
> > So I need a way to parse and display comments for my blog.
> >
> > Cheers.
> >
> > 2017-01-17 10:12 GMT+08:00 Brian Hicks <br...@brianthicks.com 
> > (javascript:)>:
> > > It doesn't look like there is, unfortunately. What are you trying to 
> > > accomplish? Maybe there's another way around. :)
> > >
> > >
> > > On Monday, January 16, 2017 at 12:00:45 AM UTC-6, fxmy wang wrote:
> > > > Hello guys,
> > > > Is there any yaml parser existing for Elm?
> > > >
> > > > Cherrs.
> > >
> > >
> > >
> > > --
> > > You received this message because you are subscribed to a topic in the 
> > > Google Groups "Elm Discuss" group.
> > > To unsubscribe from this topic, visit 
> > > https://groups.google.com/d/topic/elm-discuss/s8dy6zlQaYM/unsubscribe.
> > > To unsubscribe from this group and all its topics, send an email to 
> > > elm-discuss...@googlegroups.com (javascript:).
> > > For more options, visit https://groups.google.com/d/optout.
> >
>
>
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/elm-discuss/s8dy6zlQaYM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> elm-discuss+unsubscr...@googlegroups.com 
> (mailto: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