hanami / view

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

Automatically apply view config for copying into application #176

Closed timriley closed 4 years ago

timriley commented 4 years ago

This follows the pattern we established for Hanami actions in https://github.com/hanami/controller/pull/320 and makes it so that an "application view" has all of its configuration applied from a matching Hanami.application.config.views application-level config object.

Along with this, this includes a few adjustments to make it so that the Hanami::View.config includes all the necessary settings that are required for application views (instead of some settings having to reside exclusively within the application config). This includes: