Skip to main content

ShellFn

Type Alias ShellFn 

Source
pub type ShellFn = Arc<dyn Fn(&str, &str) -> String + Send + Sync>;
Expand description

A function that wraps the SPA body in HTML chrome (title + whatever nav/branding the host app wants). Called with (title, body_html), must return the complete HTML document string.

Aliased Typeยง

pub struct ShellFn { /* private fields */ }