Sha256: f7e44a771ad5e433b6454841d0332b81a3e71afbdd71d9b78cdd65ed411e86e9
Contents?: true
Size: 1004 Bytes
Versions: 1
Compression:
Stored size: 1004 Bytes
Contents
require 'haml/template/options' if defined?(ActiveSupport) ActiveSupport.on_load(:action_view) do require 'haml/helpers/action_view_mods' require 'haml/helpers/action_view_extensions' end else require 'haml/helpers/action_view_mods' require 'haml/helpers/action_view_extensions' end require 'haml/helpers/xss_mods' require 'haml/helpers/action_view_xss_mods' module Haml class TempleEngine def precompiled_method_return_value_with_haml_xss "::Haml::Util.html_safe(#{precompiled_method_return_value_without_haml_xss})" end alias_method :precompiled_method_return_value_without_haml_xss, :precompiled_method_return_value alias_method :precompiled_method_return_value, :precompiled_method_return_value_with_haml_xss end module Helpers include Haml::Helpers::XssMods end module Util undef :rails_xss_safe? if defined? rails_xss_safe? def rails_xss_safe?; true; end end end Haml::Template.options[:escape_html] = true require 'haml/plugin'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
haml-5.0.0.beta.2 | lib/haml/template.rb |