class Haml::Exec::HTML2Haml

def process_result

and runs the HTML compiler appropriately.
Processes the options set by the command-line arguments,
def process_result
  super
  input = @options[:input]
  output = @options[:output]
  @module_opts[:rhtml] ||= input.respond_to?(:path) && input.path =~ /\.(rhtml|erb)$/
  @module_opts[:rhtml] &&= @options[:no_rhtml] != false
  output.write(::Haml::HTML.new(input, @module_opts).render)
end