Skip to main content

render_zero_js_web_html

Function render_zero_js_web_html 

Source
pub fn render_zero_js_web_html(
    title: &str,
    asset_base: &str,
    wasm_file: &str,
    raw_js_glue: &str,
    logo_data_uri: &str,
) -> String
Expand description

Renders the self-contained zero-JS index.html / 404.html document with preload hint, tap-highlight resets, and streaming splash loader.

§Arguments

  • &str - Page title text.
  • &str - Normalized asset base URL prefix ("./" default).
  • &str - Exact <lib>_bg.wasm filename.
  • &str - Raw wasm-bindgen web-target JS glue text.
  • &str - Self-contained PNG data:image/png;base64,... icon URI.

§Returns

  • String - Complete HTML document string.