docpad/docpad-plugin-associatedfiles

toJSON() missing?

rantecki opened this issue · 1 comments

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

Cheers. Fixed the example. 3a20b3c