These are chat archives for jescalan/roots

29th
Jan 2016
David Eglin
@djeglin
Jan 29 2016 00:32
Okay guys. I think I'm going to get a bit annoying in here, possibly, as it seems that documentation for different extensions etc shows different code
I've managed to get roots-contentful up and running and pulling data, which is great. I seem to be having a problem getting the markdown to actually parse for the body content, though.
In my template I'm using :marked= entry.body and its outputting all the content, but without actually running it through the parser. I've looked around and see some places trying to run it as a function(marked(entry.body)), but this throws a "marked is not a function" error.
David Eglin
@djeglin
Jan 29 2016 09:43
Right. so it seems that :marked is working just fine for inline content, but refuses to play ball with referenced content, such as that coming from Contentful.
David Eglin
@djeglin
Jan 29 2016 10:29
Okay. Never mind. I took a look at the sprout template from the article about a static CMS and found the required changes to app.coffee in there.