Class: Hanami::Views::DefaultTemplateFinder Private

Inherits:
View::Rendering::TemplateFinder
  • Object
show all
Defined in:
lib/hanami/views/default_template_finder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(view, root, template_name, format) ⇒ DefaultTemplateFinder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Template Finder

Since:

  • 0.2.0



9
10
11
12
13
# File 'lib/hanami/views/default_template_finder.rb', line 9

def initialize(view, root, template_name, format)
  @view    = view
  @root    = root
  @options = { template: template_name, format: format }
end