Expand description
§tmpltool
A template rendering tool that uses Tera templates with environment variables.
This library provides functionality to render Tera templates with all environment variables available as context. It can output to either a file or stdout.
§Custom Functions
tmpltool provides custom Tera functions that can be used in templates:
env()- Get environment variables with optional default values
See the functions module for more details on available functions.
Re-exports§
pub use cli::Cli;pub use context::TemplateContext;pub use functions::metadata::FunctionMetadata;pub use renderer::render_template;
Modules§
- cli
- context
- filter_
functions - Unified filter-functions that support both function and filter syntax.
- functions
- Custom MiniJinja functions for tmpltool
- is_
functions - Unified is-functions module for tmpltool
- renderer
- validator
- Output format validation
Functions§
- get_
all_ metadata - Get all function metadata for IDE integration