lib/brochure/application.rb in brochure-0.5.3 vs lib/brochure/application.rb in brochure-0.5.4
- old
+ new
@@ -70,10 +70,14 @@
template_for(template_path)
end
end
def find_template_path(logical_path, format_extension)
- template_trail.find(logical_path, logical_path + format_extension, logical_path + "/index" + format_extension)
+ template_trail.find(
+ logical_path,
+ logical_path + format_extension,
+ File.join(logical_path, "index" + format_extension)
+ )
end
def find_partial_path(logical_path, format_extension)
dirname, basename = File.split(logical_path)
if dirname == "."