Class: Viu::Layout::Renderer

Inherits:
ActionView::PartialRenderer
  • Object
show all
Defined in:
lib/viu/layout.rb

Instance Method Summary collapse

Instance Method Details

#find_template(path, locals) ⇒ Object



11
12
13
14
15
# File 'lib/viu/layout.rb', line 11

def find_template(path, locals)
  prefixes = path.include?(?/) ? [] : @lookup_context.prefixes
  # override partial arg to false, so that it will look for templates without a prefixed _
  @lookup_context.find_template(path, prefixes, false, locals, @details)
end