middleman/middleman — pull request #342 by tdreyno (2012-04-04 20:02:07+00:00)
Title: Prototype Middleware/Stack-based Sitemap refactor

I've spent a little time playing with a different system for Sitemap data, this time with a focus on layering and extensibility.

Using a Rack-like Middleware facility, pieces of code can register an interest in mutating the sitemap. These middlware components are then run as necessary producing a final sitemap output.

In this system, everything is Middleware. Like so:

* Base Level: Files on disk translated to non-template paths
* Then check for proxies
* Then check for ignores
* Then... do more, like Directory Indexes, i18n or blogging stuff

Right now the only stack is the "all paths" stack. Next I want to add a "Page data" stack which will let things like blog, frontmatter, etc add data (we already have a system similar, but this will unify the API).

Thoughts? @bhollis ?