Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 docpad 很陌生,想知道如何递归地创建指向 docpad 中特定文件夹中任何文件的链接树
谢谢
我们可以使用getFilesAtPath模板助手。使用eco它看起来像这样:
getFilesAtPath
<% for file in @getFilesAtPath('blah').toJSON(): %> <a href="<%= file.url %>"><%= file.name %></a> <% end %>