lib/stache/asset_helper.rb in stache-0.2.0 vs lib/stache/asset_helper.rb in stache-0.2.1

- old
+ new

@@ -9,10 +9,10 @@ file = file.split(".").first base_path = Stache.template_base_path.join(*exploded) template_path = locate_template_for(base_path, file) if template_path - template = ::File.open(template_path, "rb") + template = ::File.open(template_path, "rb" , :encoding => Rails.configuration.encoding) content_tag(:script, template.read.html_safe, :type => "text/html", :id => "#{file.dasherize.underscore}_template") else raise ActionView::MissingTemplate.new(potential_paths(base_path, file), file, [base_path], false, { :handlers => [:mustache] }) end end.join("\n").html_safe \ No newline at end of file