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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -