Exception: Hanami::View::MissingTemplateError

Inherits:
Error
  • Object
show all
Defined in:
gems/gems/hanami-view-1.3.3/lib/hanami/view/errors.rb

Overview

Missing template error

This is raised at the runtime when Hanami::View cannot find a template for the requested format.

We can’t raise this error during the loading phase, because at that time we don’t know if a view implements its own rendering policy. A view is allowed to override #render, and this scenario can make the presence of a template useless. One typical example is the usage of a serializer that returns the output string, without rendering a template.

Since:

  • 0.1.0