I’m looking at making an extension that expands on the middleman-blog extension to add a bunch of site-specific material. In order to do that, I’d like to have posts’ frontmatters contain information which should be accessible to the extension during the before_render and after_render hooks.
The most likely way to get at this information seems to be the locs parameter to both of those hooks, but I can’t seem to get the frontmatter data to consistently and predictably show up in that parameter. The documentation on this subject is sparse, so I’m wondering, a) what data is locs supposed to contain, and b) how can I use it to examine the front matter of each post?