Crate replace_html

Source
Expand description

Easily replace HTML in wasm32 environments.

§Usage

#[cfg(target_arch = "wasm32")]
fn main() {
    replace_html::replace_body("Your platform is not supported!").unwrap();
}
#[cfg(not(target_arch = "wasm32"))]
fn main() {
    // Proceed to run your application...
}

Enums§

ReplaceHtmlError

Functions§

replace_body
Replace the inner HTML of the document body.
replace_by_id
Replace the inner HTML of an element by ID.