Skip to content

A simple, minimal crate to replace an HTML element with new HTML.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

loopystudios/replace_html

Repository files navigation

Replace HTML

A simple, minimal crate to replace HTML in wasm32 environments.

Discord MIT/Apache 2.0 Build status dependency status Crates.io Docs

Quickstart to run demo:

  • Web
# Make sure the Rust toolchain supports the wasm32 target
rustup target add wasm32-unknown-unknown

# Install `wasm-server-runner` for the example
cargo install wasm-server-runner

cargo run --target wasm32-unknown-unknown --example simple

There is also a web demo available here.

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...
}

Community

All Loopy projects and development happens in the Loopy Discord. The discord is open to the public.

Contributions are welcome by pull request. The Rust code of conduct applies.

License

Licensed under either of

at your option

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A simple, minimal crate to replace an HTML element with new HTML.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages