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.
Previously, the
template
setting was only configured on subclasses of an application view, presuming that the initial direct subclass ofHanami::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 ofHanami::View
.