-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
ahoy,
first, thanks for the refactor and all this work on Assemble. this helper was the thing that caught my eye and made me give Assemble a try. and your push this morning fixed a bug i was encountering last night when i finally got a chance to try this helper. thanks again ;)
so far the compose helper seems to work as advertised, but i am having a hard time using it in a layout and making in generic enough to work with whatever uses that layout.
here is a simplified version of my setup:
├── releases
│ ├── releases.yaml
│ ├── A
│ │ ├── tracks
│ │ │ ├── 1
│ │ │ │ ├── index.html
│ │ │ │ └── info.yaml
│ │ │ └── 2
│ │ │ ├── index.html
│ │ │ └── info.yaml
│ │ └── A.yaml
│ └── B
│ ├── tracks
│ │ ├── 1
│ │ │ ├── index.html
│ │ │ └── info.yaml
│ │ ├── 2
│ │ │ ├── index.html
│ │ │ └── info.yaml
│ │ ├── 3
│ │ │ ├── index.html
│ │ │ └── info.yaml
│ │ └── 4
│ │ ├── index.html
│ │ └── info.yaml
│ └── B.yaml
└── pages
├── about.html
└── news.html
i am trying to use Assemble to view the collections that are already modeled by the directory structure i.e. the releases
(AKA albums) collection has 2 elements A
and B
, each release collection element has a sub collection tracks
which contain the tracks of the release, and pages
has simple content pages.
i am trying to use this compose helper in a layout for a release to pull in the track contents in the subdirectory tracks
of the release collection. so far i have been unable to set the cwd
option for each release
folder differently unless i specify each release separately in the global Assemble options.
what i am trying overall to achieve is to have the directory structure be the configuration, allowing new releases
to simply be created by making a new directory and adding content in the correct place, instead of explicitly naming everything in the global Assemble config.
i am new to Assemble and perhaps there is another way to do this, or this is not a supported use case at this time. any advice would be appreciated.
thanks again.