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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -