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/template.rb
Takashi Kokubun 4a6ed79358 Do not escape html by default
That's because haml-spec requires escaping when the options is
escape_html: true.
2015-03-16 03:02:31 +09:00

15 lines
450 B
Ruby

module Hamlit
Template = Temple::Templates::Tilt.create(Hamlit::Engine, register_as: :haml)
if defined?(::ActionView)
RailsTemplate = Temple::Templates::Rails.create(
Hamlit::Engine,
register_as: :haml,
# Use rails-specific generator. This is necessary
# to support block capturing and streaming.
generator: Temple::Generators::RailsOutputBuffer,
escape_html: true,
streaming: true,
)
end
end