Crate clnrm_template

Crate clnrm_template 

Source
Expand description

clnrm-template - Template Engine for Cleanroom Testing Framework

This crate provides Tera-based template rendering capabilities for test configuration files, enabling dynamic test generation with custom functions and macro libraries.

Re-exports§

pub use builder::TemplateEngineBuilder;
pub use cache::CachedRenderer;
pub use cache::TemplateCache;
pub use context::TemplateContext;
pub use custom::register_custom_filter;
pub use custom::register_custom_function;
pub use custom::CustomFilter;
pub use custom::CustomFunction;
pub use custom::FunctionRegistry;
pub use debug::DebugInfo;
pub use debug::TemplateAnalyzer;
pub use debug::TemplateDebugger;
pub use determinism::DeterminismConfig;
pub use discovery::TemplateDiscovery;
pub use discovery::TemplateLoader;
pub use error::Result;
pub use error::TemplateError;
pub use async::async_render;
pub use async::async_render_file;
pub use async::async_render_with_json;
pub use async::AsyncTemplateRenderer;
pub use renderer::get_cached_template_renderer;
pub use renderer::is_template;
pub use renderer::render_template;
pub use renderer::render_template_file;
pub use renderer::OutputFormat;
pub use renderer::TemplateRenderer;
pub use simple::quick;
pub use simple::render;
pub use simple::render_file;
pub use simple::render_to_format;
pub use simple::render_with_context;
pub use simple::render_with_json;
pub use simple::TemplateBuilder;
pub use toml::TomlFile;
pub use toml::TomlLoader;
pub use toml::TomlMerger;
pub use toml::TomlWriter;
pub use validation::SchemaValidator;
pub use validation::TemplateValidator;
pub use validation::ValidationRule;

Modules§

async
Async template rendering support
builder
Template engine builder for comprehensive configuration
cache
Template caching and hot-reload system
context
Template context for Tera rendering
custom
Custom function and filter registration for template extensibility
debug
Template debugging and error reporting utilities
determinism
Determinism support for reproducible tests
discovery
Template discovery and auto-loading system
error
Template error types for clnrm-template
functions
Custom Tera functions for clnrm templates
renderer
Tera template rendering for .clnrm.toml files
simple
Simple API for basic template rendering use cases
toml
Comprehensive TOML file operations for Cleanroom templates
validation
Template output validation and schema checking

Macros§

custom_filter
Create a custom filter with less boilerplate
custom_function
Helper macros for creating custom functions and filters
register_filters
Register multiple filters at once
register_functions
Register multiple functions at once
template
Template macros for compile-time template rendering
template_literal
Template literals for embedded templates

Constants§

MACRO_LIBRARY
Macro library content embedded at compile time