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

15 lines
373 B
Ruby
Raw Normal View History

2015-03-12 22:56:34 +09:00
module Hamlit
Template = Temple::Templates::Tilt.create(Hamlit::Engine, register_as: :haml)
if defined?(::ActionView)
RailsTemplate = Temple::Templates::Rails.create(
Hamlit::Engine,
2015-03-16 13:08:34 +09:00
generator: Temple::Generators::RailsOutputBuffer,
2015-03-12 22:56:34 +09:00
register_as: :haml,
escape_html: true,
2015-03-16 13:08:34 +09:00
streaming: true,
2015-03-27 16:40:15 +09:00
ugly: true,
2015-03-12 22:56:34 +09:00
)
end
end