use std::io::{Read, Write}; use std::path::{Path, PathBuf}; use std::process::ExitCode; use std::sync::atomic::{AtomicUsize, Ordering}; use tidyrs::css; use tidyrs::embed::Verbatim; use tidyrs::handlebars::{self, Dialect}; use tidyrs::html::{self, Parser, Whitespace}; const HELP: &str = "\ tidyrs: a fast markup formatter Usage $ tidyrs [paths...] [options] Without paths, reads stdin and prints the result. With one file, prints the result unless --check or --write is set. Folders are searched for .html, .htm, .vue, .hbs, .handlebars, .css, .scss, and .less files. Code in