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