simple_minify_html/cfg/
mod.rs

1/// Configuration settings that can be adjusted and passed to a minification function to change the
2/// minification approach.
3#[derive(Clone, Default)]
4pub struct Cfg {
5    /// Do not omit closing tags when possible.
6    pub keep_closing_tags: bool,
7    /// Keep all comments.
8    pub keep_comments: bool,
9    /// Do not omit `<html>` and `<head>` opening tags when they don't have attributes.
10    pub keep_html_and_head_opening_tags: bool,
11    /// Keep `type=text` attribute name and value on `<input>` elements.
12    pub keep_input_type_text_attr: bool,
13    /// Keep SSI comments.
14    pub keep_ssi_comments: bool,
15    /// Remove all bangs.
16    pub remove_bangs: bool,
17    /// Remove all processing instructions.
18    pub remove_processing_instructions: bool,
19}
20
21impl Cfg {
22    #[must_use]
23    pub fn new() -> Cfg {
24        Cfg::default()
25    }
26}