class Viu::Layout::Renderer

Public Instance Methods

find_template(path, locals) click to toggle source

github.com/rails/rails/blob/v5.2.4.3/actionview/lib/action_view/renderer/partial_renderer.rb#L421

# 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