lib/stache/asset_helper.rb in stache-0.2.1 vs lib/stache/asset_helper.rb in stache-0.2.2
- old
+ new
@@ -19,17 +19,15 @@
end.join("\n").html_safe
end
def potential_paths(path, candidate_file_name)
[
- path.join("_#{candidate_file_name}.html.mustache"),
- path.join("_#{candidate_file_name}.mustache"),
- path.join("#{candidate_file_name}.html.mustache"),
- path.join("#{candidate_file_name}.mustache")
+ path.join("_#{candidate_file_name}.#{Stache.template_extension}"),
+ path.join("#{candidate_file_name}.#{Stache.template_extension}")
]
end
def locate_template_for(path, candidate_file_name)
potential_paths(path, candidate_file_name).find { |file| File.file?(file.to_s) }
end
end
-end
\ No newline at end of file
+end