tdreyno/middleman — Issue #191: Configurable content extensions
Author: bhollis
Created: 2011-12-11 02:45:54+00:00
State: open

I'd like it if I could configure a list of "content" file extensions that would be used by Middleman. That would be the list of file extensions that were treated as page content by frontmatter, directory indexes, etc.

This arose because I have a mixture of .html and .php files in my site, but frontmatter only looks at .html files, using a hardcoded regex. If this were a configuration option, frontmatter could build a regex to match any of my extensions, as could sitemap_tree, etc.

Or, alternately, frontmatter's hardcoded extension check could be extended to include ".php".