vite-rust 0.1.2

A Vite back-end integration for Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub(crate) trait NormalizeHtmlStrings {
    fn __normalize_html_strings(self) -> String;
}

impl<T: ToString> NormalizeHtmlStrings for T {
    fn __normalize_html_strings(self) -> String {
        self
        .to_string()
        .replace("\t", "     ")
        .lines()
        .map(str::trim)
        .collect::<Vec::<&str>>()
        .join("\n")
        .trim()
        .to_string()
    }
}