Class: Hanami::Views::DefaultTemplateFinder

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

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


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

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