Scroll to navigation

html2haml(1) General Commands Manual html2haml(1)

NAME

html2haml - Transforms an HTML file into corresponding Haml code.

SYNOPSIS

html2haml [options] [INPUT] [OUTPUT]

DESCRIPTION

Transforms an HTML file into corresponding Haml code.

OPTIONS

Parse ERb tags.
Don't parse ERb tags.
Deprecated; same as --erb
Deprecated; same as --no-erb
Parse the input using the more strict XHTML parser.
Use HTML style attributes instead of Ruby hash style.
Specify the default external and internal character encodings.
Read input from standard input instead of an input file
Show a full traceback on error
Use Unix-style newlines in written files.
-?, -h, --help
Show this message
Print version

Please note this program's function is to make a first approach towards converting your HTML. Although usually it will give you a nearly good result, it will often need tweaking - This is specially true when you are parsing RHTML, as it can include parsable and conditional tags which can be misinterpreted and break nesting.

AUTHOR

This manual page was written by Gunnar Wolf <gwolf@debian.org>, based on the command-line output of this program, for the Debian GNU/Linux system (but may be freely used by others).

May 23, 2013