lib/hanami/view/template.rb in hanami-view-0.6.0 vs lib/hanami/view/template.rb in hanami-view-0.6.1

- old
+ new

@@ -5,10 +5,12 @@ # A logic-less template. # # @since 0.1.0 class Template def initialize(template, encoding = Encoding::UTF_8) - @_template = Tilt.new(template, nil, default_encoding: encoding) + # NOTE disable_escape: true is for Slim compatibility + # See https://github.com/hanami/assets/issues/36 + @_template = Tilt.new(template, nil, default_encoding: encoding, disable_escape: true) end # Returns the format that the template handles. # # @return [Symbol] the format name