javascript - how to recursively create a tree of links to any files in a specific folder in docpad -
i'm new docpad , know how can recursively create tree of links files in specific folder in docpad
thanks
we can use getfilesatpath
template helper. eco this:
<% file in @getfilesatpath('blah').tojson(): %> <a href="<%= file.url %>"><%= file.name %></a> <% end %>
Comments
Post a Comment