ranger 0.2.3

ranger is a code templating tool.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct Blueprint {
    pub version: String,
    #[serde(with = "serde_yaml::with::singleton_map_recursive")]
    pub template: Template,
}

#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct Template {
    pub variables: Option<HashMap<String, complate::config::VariableDefinition>>,
    pub helpers: std::option::Option<HashMap<String, String>>,
}