Method: Innate::Node#map_views

Defined in:
lib/innate/node.rb

#map_views(*locations) ⇒ Node

Set the paths for lookup below the Innate.options.views paths.

Parameters:

  • locations (String, Array<String>)

    Any number of strings indicating the paths where view templates may be located, relative to Innate.options.roots/Innate.options.views

Returns:

See Also:

  • Innate::Node.{Node{Node#view_mappings}

Author:

  • manveru



922
923
924
925
# File 'lib/innate/node.rb', line 922

def map_views(*locations)
  trait :views => locations.flatten.uniq
  self
end