hanami / view

Views, templates and presenters for Ruby web applications
http://hanamirb.org
MIT License
173 stars 80 forks source link

Provide context object from template to layout #178

Closed timriley closed 1 year ago

timriley commented 4 years ago

This makes it possible for the layout to access any context state changed from within the template, which is necessary to enable content_for-style behaviour, or e.g. for context helpers that allow the templates to set a page title, which is then output from the layout.

timriley commented 1 year ago

This is already taken care of by changes in the last couple years.