Sha256: 2d4cdbdd6012f9e3632eebb49baf17ccdf933041efd9d574d7d53b91209ff6a3

Contents?: true

Size: 323 Bytes

Versions: 47

Compression:

Stored size: 323 Bytes

Contents

require 'hamlit/concerns/included'

module Hamlit
  module Concerns
    module Escapable
      extend Included

      included do
        define_options escape_html: false
      end

      def escape_html(exp, force_escape = false)
        [:escape, force_escape || @options[:escape_html], exp]
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
hamlit-1.7.2 lib/hamlit/concerns/escapable.rb
hamlit-1.7.1 lib/hamlit/concerns/escapable.rb
hamlit-1.7.0 lib/hamlit/concerns/escapable.rb
hamlit-1.6.7 lib/hamlit/concerns/escapable.rb
hamlit-1.6.6 lib/hamlit/concerns/escapable.rb
hamlit-1.6.5 lib/hamlit/concerns/escapable.rb
hamlit-1.6.4 lib/hamlit/concerns/escapable.rb
hamlit-1.6.3 lib/hamlit/concerns/escapable.rb
hamlit-1.6.2 lib/hamlit/concerns/escapable.rb
hamlit-1.6.1 lib/hamlit/concerns/escapable.rb
hamlit-1.6.0 lib/hamlit/concerns/escapable.rb
hamlit-1.5.9 lib/hamlit/concerns/escapable.rb
hamlit-1.5.8 lib/hamlit/concerns/escapable.rb
hamlit-1.5.7 lib/hamlit/concerns/escapable.rb
hamlit-1.5.6 lib/hamlit/concerns/escapable.rb
hamlit-1.5.5 lib/hamlit/concerns/escapable.rb
hamlit-1.5.4 lib/hamlit/concerns/escapable.rb
hamlit-1.5.3 lib/hamlit/concerns/escapable.rb
hamlit-1.5.2 lib/hamlit/concerns/escapable.rb
hamlit-1.5.1 lib/hamlit/concerns/escapable.rb