middleman/middleman-blog — pull request #66 by rumpuslabs (2012-07-22 02:54:46+00:00)
Title: Deprecate the use of instance variables in metadata

The use of instance variables in metadata should be deprecated, since they do not get cleared properly between templates (see middleman/middleman#547). Because undefined local variables throw exceptions instead of returning nil like instance variables, add a `page_type` variable to tell the different types of archive pages apart. Use `tagname` in place of `@tag` because a `tag` local will clash with Padrino's tag helper.

Keep the instance variables around for backwards compatibility but they're broken so I strongly suggest getting rid of them in the long run.