mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
17 lines
323 B
Ruby
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
|