class Middleman::TemplateContext

The TemplateContext Class

A clean context, separate from Application, in which templates can be executed. All helper methods and values available in a template, but be accessible here. Also implements two helpers: wrap_layout & render (used by padrino’s partial method). A new context is created for each render of a path, but that context is shared through the request, passed from template, to layouts and partials.