Expand description
Simple API for basic template rendering use cases
Provides dead-simple functions for common template rendering scenarios:
render(template, vars)- Basic string renderingrender_file(path, vars)- File-based renderingrender_with_context(template, context)- Advanced rendering with contextTemplateBuilder- Fluent API for complex configurations
Modules§
- quick
- Quick template rendering functions for common patterns
Structs§
- Template
Builder - Template builder for fluent configuration
Enums§
- Output
Format - Output format for template rendering
Functions§
- convert_
to_ json - Convert TOML to JSON format
- convert_
to_ yaml - Convert TOML to YAML format
- render
- Render template string with variables (simplest API)
- render_
file - Render template file with variables
- render_
to_ format - Render template to specific output format
- render_
with_ context - Render template with pre-built context
- render_
with_ json - Render template string with JSON values
- strip_
template_ syntax - Strip template syntax to get plain text