At the moment I have the following folder structure:
- /layouts/
- /modules/
I then currently include these partials in my Yaml as such:
title: Homepage
layout: layout
modules:
- path: carousel_module
title: Carousel Headline
copy: Lorem ipsum dolor sit amet, consectetur adipisicing elit sed.
```
This is great but what I need to have is flexibility in creating which modules are included into `<section>` elements. So I am considering changing my folder structure to something similar to this:
* /layouts/
* /modules/
* /sections/
And format my Yaml as such:
```
sections:
- path: artist_section
modules:
- path: intro_copy_module
- title: Carousel Headline
copy: Lorem ipsum dolor sit amet, consectetur adipisicing elit sed.
- path: carousel_module
- path: image_gallery_module
- path: record_label_section
modules:
- path: banner_module
- path: intro_copy_module
- title: Carousel Headline
copy: Lorem ipsum dolor sit amet, consectetur adipisicing elit sed.
```
Inside `artist_section.erb` would be:
```
<section class="section artist-section">
<%= items.join('') %>
</section><!--/artist-section-->
```
Is this a solid pattern? How would I go about setting Middleman up to do this?