Module simple

Module simple 

Source
Expand description

Simple API for basic template rendering use cases

Provides dead-simple functions for common template rendering scenarios:

  • render(template, vars) - Basic string rendering
  • render_file(path, vars) - File-based rendering
  • render_with_context(template, context) - Advanced rendering with context
  • TemplateBuilder - Fluent API for complex configurations

Modules§

quick
Quick template rendering functions for common patterns

Structs§

TemplateBuilder
Template builder for fluent configuration

Enums§

OutputFormat
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