anza 0.6.0

Ultra-lightweight, zero-copy, cryptographically verified Server-Templated UI (STUI) engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use {
  crate::{
    engine::cache::Engine,
    errors::Result,
    models::envelope::Envelope,
  },
  std::collections::HashMap,
};

pub fn envelope(engine: &Engine, template: &str, slot: &str, params: &HashMap<String, String>) -> Result<Envelope> {
  engine.render_fragment(template, slot, params)
}