class Haml::TempleEngine

For backward compatibility of Tilt integration. TODO: We should deprecate this and let Tilt have a native support of Haml 6. At least it generates warnings now.

Public Instance Methods

compile(template) click to toggle source
# File lib/haml/engine.rb, line 51
def compile(template)
  @precompiled = call(template)
end
precompiled_with_ambles(_local_names, after_preamble:) click to toggle source
# File lib/haml/engine.rb, line 55
def precompiled_with_ambles(_local_names, after_preamble:)
  "#{after_preamble.tr("\n", ';')}#{@precompiled}".dup
end