class Haml::Exec::HTML2Haml

def set_opts(opts)

Parameters:
  • opts (OptionParser) --
def set_opts(opts)
  opts.banner = <<END
 html2haml [options] [INPUT] [OUTPUT]
ption: Transforms an HTML file into corresponding Haml code.
s:
  opts.on('-r', '--rhtml', 'Parse RHTML tags.') do
    @module_opts[:rhtml] = true
  end
  opts.on('--no-rhtml', "Don't parse RHTML tags.") do
    @options[:no_rhtml] = true
  end
  opts.on('-x', '--xhtml', 'Parse the input using the more strict XHTML parser.') do
    @module_opts[:xhtml] = true
  end
  super
end