anza 0.6.0

Ultra-lightweight, zero-copy, cryptographically verified Server-Templated UI (STUI) engine
Documentation
1
2
3
4
5
6
7
8
pub fn wrap_dsd(tag: &str, inner_html: &str, shadow_content: &str) -> String {
  format!(
    "<{tag}><template shadowrootmode=\"open\">{shadow}</template>{inner}</{tag}>",
    tag = tag,
    shadow = shadow_content,
    inner = inner_html
  )
}