Skip to content

toJSON() missing? #2

rantecki opened this Issue Mar 1, 2013 · 1 comment

2 participants

rantecki commented Mar 1, 2013

I couldn't get the example in the Usage to work. After an hour or two of digging I worked out that adding toJSON() to the end of getAssociatedFiles() fixes the problem, i.e.:

<% for file in @getDocument().getAssociatedFiles().toJSON(): %>
<%= file.url %>
<% end %>

DocPad member
balupton commented Mar 4, 2013

Cheers. Fixed the example. 3a20b3c

@balupton balupton closed this Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.