method
new
v2.2.1 -
Show latest stable
- Class:
ActionView::Template
new(template_path, load_paths = [])public
No documentation available.
# File actionpack/lib/action_view/template.rb, line 12
def initialize(template_path, load_paths = [])
template_path = template_path.dup
@base_path, @name, @format, @extension = split(template_path)
@base_path.to_s.gsub!(/\/$/, '') # Push to split method
@load_path, @filename = find_full_path(template_path, load_paths)
# Extend with partial super powers
extend RenderablePartial if @name =~ /^_/
end