middleman/middleman — pull request #212 by bhollis (2011-12-26 23:56:06+00:00)
Title: Page generated for non-default layout files

It looks like if you create other layouts as recommended by the guides (http://middlemanapp.com/guides/templates-layouts-partials) Middleman will generate a page for those layouts!

For example, take this structure:

```
source/
layout.haml
other_layout.haml
index.html.haml
```

I thought naming files with just the template extension was what marked them as layouts. What'll happen in this scenario is that two files will be generated: `index.html` and `other_layout`. I'd expect only `index.html` to generate.

This pull request includes a failing test case for this issue - I'm not sure right away how to fix it. If the recommendation is just to put all layouts in `layouts/` I'd actually be cool with that, but the docs would need to be updated.