lib/minimart/web/template_helper.rb in minimart-1.2.0 vs lib/minimart/web/template_helper.rb in minimart-1.2.3

- old
+ new

@@ -25,10 +25,10 @@ # Build a template from the provided template name # @param [String] template_name The name of the template to build # @return [Tilt::ERBTemplate] def template(template_name) - Tilt::ERBTemplate.new(template_file(template_name)) + Tilt::ERBTemplate.new(template_file(template_name), :default_encoding => 'utf-8') end # The path to a given template file # @param [String] template_name The template to build a path for # @return [String] The path to the template file