use rsciter::*;
fn main() {
if let Err(e) = try_main() {
eprintln!("Error: {e}");
} else {
println!("Ok!");
}
}
const HTML: &'static [u8] = br#"
"#;
#[derive(Default, Debug)]
pub struct Person {
age: i32,
name: String,
}
impl Person {
pub fn format(&self) -> String {
format!("{} of {}", &self.name, self.age)
}
}
impl som::ItemGetter for Person {
fn get_item(&self, key: &Value) -> Result