pub struct PreprocessorTemplateSection {
pub extensions: Vec<String>,
pub vars: HashMap<String, String>,
pub no_reverse: Vec<String>,
}Expand description
Template preprocessor settings.
Fields§
§extensions: Vec<String>File extensions that trigger template rendering. Each extension
is matched as a suffix (e.g. "tmpl" matches config.toml.tmpl).
vars: HashMap<String, String>User-defined variables, accessible as bare names in templates
(e.g. name = "Alice" makes {{ name }} render as Alice).
Reserved: dodot and env are built-in namespaces; using them
as var names raises an error at load time.
no_reverse: Vec<String>Glob patterns for source files whose reverse-merge should be
skipped. Templates matching are still rendered on dodot up and
tracked in the divergence cache, but dodot transform check and
the clean filter both bypass the burgertocow reverse-merge step
(echo stdin / report-only). Useful for templates that are mostly
dynamic — the heuristic degrades there and produces more conflict
markers than usable diffs.
Patterns are matched against the source path’s filename component
(e.g. "complex-config.toml.tmpl", "*.gen.tmpl").
Trait Implementations§
Source§impl Clone for PreprocessorTemplateSection
impl Clone for PreprocessorTemplateSection
Source§fn clone(&self) -> PreprocessorTemplateSection
fn clone(&self) -> PreprocessorTemplateSection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Config for PreprocessorTemplateSection
impl Config for PreprocessorTemplateSection
Source§type Layer = PreprocessorTemplateSectionLayer
type Layer = PreprocessorTemplateSectionLayer
Self (a potentially partial configuration). Read moreSource§fn from_layer(layer: Self::Layer) -> Result<Self, Error>
fn from_layer(layer: Self::Layer) -> Result<Self, Error>
Self from a layer and validates itself. Read moreSource§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
#[default = ...]) are merged
(with the lowest priority). Read more