fn finalize_html(&self, target_html: &mut Document) {
        // Write public_url to base element.
        let mut base_elements = target_html.select(&format!("html head base[{}]", PUBLIC_URL_MARKER_ATTR));
        base_elements.remove_attr(PUBLIC_URL_MARKER_ATTR);
        base_elements.set_attr("href", &self.cfg.public_url);
    }
/// Prepare the document for final output.
Prepare the document for final output.
Prepare the document for final output .
fn finalize_html(&self, target_html: &mut Document) {
        // Write public_url to base element.
        let mut base_elements = target_html.select(&format!("html head base[{}]", PUBLIC_URL_MARKER_ATTR));
        base_elements.remove_attr(PUBLIC_URL_MARKER_ATTR);
        base_elements.set_attr("href", &self.cfg.public_url);
    }
fn finalize_html ( & self , target_html : & mut Document ) { // Write public_url to base element. let mut base_elements = target_html . select ( & format ! ( " " PUBLIC_URL_MARKER_ATTR ) ) ; base_elements . remove_attr ( PUBLIC_URL_MARKER_ATTR ) ; base_elements . set_attr ( " " , & self . cfg . public_url ) ; }
Prepare the document for final output.
Prepare the document for final output .
&self
target_html
&mut Document
&self
target_html
&mut Document