Expand description
Template preprocessor — renders Jinja2-style templates via MiniJinja.
Matches files with configurable extensions (default: .tmpl,
.template), renders them against a variable context with three
namespaces:
dodot.*— built-in values (os, arch, hostname, username, home, dotfiles_root), computed once at preprocessor construction.env.*— dynamic lookup of process environment variables.- bare names — user-defined variables from
[preprocessor.template.vars]in.dodot.toml.
Uses MiniJinja strict undefined-behaviour: references to missing vars raise a render error rather than silently producing empty strings.
Structs§
- Template
Preprocessor - Template rendering preprocessor. Generative (one-way) transform.