Thursday, 22 August 2013

How to get collections from sub-folder in docpad?

How to get collections from sub-folder in docpad?

my folds structure are something like this:
documents
techs
docs
I want to get a collection from docs, my code is :
coffeescript techs: ->
@getCollection("html").findAllLive({relativeOutDirPath:
/techs/docs/},[{date: -1}]).on "add", (model) ->
model.setMetaDefaults({layout: "post"})
It just won't works... Could somebody tell me what's going on?

No comments:

Post a Comment