hanami / view

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

Configure template on all application views #181

Closed timriley closed 3 years ago

timriley commented 4 years ago

Previously, the template setting was only configured on subclasses of an application view, presuming that the initial direct subclass of Hanami::View was an abstract “base” view, not to used directly.

This was an overly constricting approach, since there are numerous reasons that an application author may want to inherit directly from Hanami::View and use that subclass as a fully renderable view.

This change ensures the template setting is configured on all descendants of Hanami::View.

timriley commented 4 years ago

Application views should have their template configured in all cases