middleman/middleman — pull request #635 by bhollis (2012-10-13 02:52:05+00:00)
Title: Upgrade proxy to be able to take :locals and understand :ignore

And store proxy options and metadata with the proxy list.

This allows users to use `proxy` directly instead of `page` to create dynamic pages, and improves performance of dynamic pages for sites that create many proxies. It also allows people to use locals instead of instance variables, which are better for partials and reduce the risk of overwriting Middleman settings.

Once this is in, I'll update the documentation to recommend `proxy` with `:locals` instead of `page` with a block for creating dynamic pages. I think we should probably emit a deprecation warning for using page to set up proxy and ignore at some point.

I tried this out with a Middleman project that generates 70,000 pages via proxies (courtesy of @metadata) and this change speeds it up by quite a bit - pages fly by in build instead of taking around a second per page,