1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use std::collections::HashMap;

use toml::Value;

pub(crate) fn process_toml(toml_input: &str) -> HashMap<String, Value> {
    toml::from_str(toml_input).expect("Toml input incorrect")
}

#[test]
fn test_toml() {
    let frontmatter = r#"
template = "test1"
name = "ree"
"#;
    let _re: HashMap<String, Value> = dbg!(toml::from_str(frontmatter).unwrap());
}