1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/hamlit/concerns/escapable.rb
2015-03-29 01:14:20 +09:00

17 lines
323 B
Ruby

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