html2haml(1)

html2haml(1) πŸ’–

okay bestie, so this is the manual page for html2haml, from the General Commands Manual section (section 1, commands, iykyk) πŸ’…


✨ NAME ✨

html2haml β€” Transforms an HTML file into corresponding Haml code. πŸ¦‹


🌸 SYNOPSIS 🌸

html2haml [options] [INPUT] [OUTPUT]

πŸ’œ DESCRIPTION πŸ’œ

Transforms an HTML file into corresponding Haml code. that's it, that's the whole vibe. HTML in, Haml out, slay ✨


πŸŽ€ OPTIONS πŸŽ€

  • -e, --erb β€” Parse ERb tags. yes queen, let it read your embedded Ruby πŸ’–
  • --no-erb β€” Don't parse ERb tags. the opposite energy, respectfully πŸ™ˆ
  • -r, --rhtml β€” Deprecated; same as --erb. it's giving old news, but it still works 🫢
  • --no-rhtml β€” Deprecated; same as --no-erb. also ancient, also still functional πŸ’€
  • -x, --xhtml β€” Parse the input using the more strict XHTML parser. she's a little more high-maintenance, but she's thorough πŸ’…
  • --html-attributes β€” Use HTML style attributes instead of Ruby hash style. choose your aesthetic ⭐
  • -E, --ex[:in] β€” Specify the default external and internal character encodings. ex and in being the external and internal ones, obviously πŸ‘‘
  • -s, --stdin β€” Read input from standard input instead of an input file. pipe it straight in, no file needed 🌈
  • --trace β€” Show a full traceback on error. when it breaks, you get the WHOLE receipts 😭
  • --unix-newlines β€” Use Unix-style newlines in written files. line ending representation matters, periodt πŸ’–
  • -?, -h, --help β€” Show this message. hi, hello, help is here πŸŽ€
  • -v, --version β€” Print version. which one are we on, bestie? πŸ¦‹
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.

okay so real talk for a sec: this tool is a first pass, not a finished masterpiece. usually it gets you nearly good, and then you gotta go in and tweak it yourself. and when you're parsing RHTML?? extra tweaking required, because it can have parsable and conditional tags that get misinterpreted and break the nesting. not me being dramatic, that's literally what the page says 😭 so vibe check your output before you ship it, fr fr.


🌟 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). we love a Debian girlie who documents her work πŸ’œ


and that's the whole page, bestie!! this version dropped on May 23, 2013, it's from the General Commands Manual, and it goes by html2haml(1) πŸŽ€βœ¨ go forth and convert, you got this πŸ«ΆπŸ’–

πŸ“¦ where this page comes from