/// Interpolates page error data into the shell in the event of a failure.
Interpolates page error data into the shell in the event of a failure.
Interpolates page error data into the shell in the event of a failure .
pub fn error_page(mut self, error_page_data: &'a ErrorPageData, error_html: &'a str) -> Self {
        let error = serde_json::to_string(error_page_data).unwrap();
        let state_var = format!(
            "window.__PERSEUS_INITIAL_STATE = `error-{}`;",
            escape_page_data(&error),
        );
        self.scripts_after_boundary.push(state_var.into());
        self.content = error_html.into();
        self
    }
pub fn error_page ( mut self , error_page_data : & ' a ErrorPageData , error_html : & ' a str ) -> Self { let error = serde_json :: to_string ( error_page_data ) . unwrap ( ) ; let state_var = format ! ( " " escape_page_data ( error ) ) ; self . scripts_after_boundary . push ( state_var . into ( ) ) ; self . content = error_html . into ( ) ; self }
Interpolates page error data into the shell in the event of a failure.
Interpolates page error data into the shell in the event of a failure .
mut self
error_page_data
&'a ErrorPageData
error_html
&'a str