#[derive(Default)]
pub struct Cfg {
pub do_not_minify_doctype: bool,
pub ensure_spec_compliant_unquoted_attribute_values: bool,
pub keep_closing_tags: bool,
pub keep_html_and_head_opening_tags: bool,
pub keep_spaces_between_attributes: bool,
pub keep_comments: bool,
pub minify_css: bool,
pub minify_css_level_1: bool,
pub minify_css_level_2: bool,
pub minify_css_level_3: bool,
pub minify_js: bool,
pub remove_bangs: bool,
pub remove_processing_instructions: bool,
}
impl Cfg {
pub fn new() -> Cfg {
Cfg::default()
}
pub fn spec_compliant() -> Cfg {
Cfg {
do_not_minify_doctype: true,
ensure_spec_compliant_unquoted_attribute_values: true,
keep_spaces_between_attributes: true,
..Cfg::default()
}
}
}