Sha256: d6cc565bc3d1c78d26a67d93619ee29ab3c632c8a6c6cf15261994b76a43870a

Contents?: true

Size: 418 Bytes

Versions: 39

Compression:

Stored size: 418 Bytes

Contents

module Haml
  module Helpers
    include XssMods
    include ActionViewExtensions
  end

  module Util
    def self.rails_xss_safe?
      true
    end
  end
end

module Padrino
  module Rendering
    class HamlTemplate < Tilt::HamlTemplate
      include SafeTemplate
    end
  end
end

Tilt.prefer(Padrino::Rendering::HamlTemplate, :haml)

Padrino::Rendering.engine_configurations[:haml] = {
  :escape_html => true,
}

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
padrino-helpers-0.16.0.pre3 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.16.0.pre2 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.15.3 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.15.2 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.15.1 lib/padrino/rendering/haml_template.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/lib/padrino/rendering/haml_template.rb
padrino-helpers-0.15.0 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.4 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.3 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.12.9 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.2 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.13.3.4 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.1.1 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.1 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.0.2 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.0.1 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.0 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.0.rc2 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.14.0.rc1 lib/padrino/rendering/haml_template.rb
padrino-helpers-0.13.3.3 lib/padrino/rendering/haml_template.rb