Method: Innate::Node#to_template
- Defined in:
- lib/innate/node.rb
#to_template(path, wish) ⇒ nil, String
Try to find a template at the given path
for wish
.
Since Innate supports multiple paths to templates the path
has to be an Array that may be nested one level.
777 778 779 |
# File 'lib/innate/node.rb', line 777 def to_template(path, wish) to_view(path, wish) || to_layout(path, wish) end |