clnrm_template/
lib.rs

1//! clnrm-template - Template Engine for Cleanroom Testing Framework
2//!
3//! This crate provides Tera-based template rendering capabilities for test configuration files,
4//! enabling dynamic test generation with custom functions and macro libraries.
5
6#[cfg(feature = "async")]
7pub mod r#async;
8pub mod builder;
9pub mod cache;
10pub mod context;
11pub mod custom;
12pub mod debug;
13pub mod determinism;
14pub mod discovery;
15pub mod error;
16pub mod functions;
17pub mod renderer;
18pub mod simple;
19pub mod toml;
20pub mod validation;
21// TODO: Re-enable integration module after adding actix_web dependency
22// pub mod integration;
23
24pub use builder::TemplateEngineBuilder;
25pub use cache::{CachedRenderer, TemplateCache};
26pub use context::TemplateContext;
27pub use custom::{
28    register_custom_filter, register_custom_function, CustomFilter, CustomFunction,
29    FunctionRegistry,
30};
31pub use debug::{DebugInfo, TemplateAnalyzer, TemplateDebugger};
32pub use determinism::DeterminismConfig;
33pub use discovery::{TemplateDiscovery, TemplateLoader};
34pub use error::{Result, TemplateError};
35#[cfg(feature = "async")]
36pub use r#async::{async_render, async_render_file, async_render_with_json, AsyncTemplateRenderer};
37pub use renderer::{
38    get_cached_template_renderer, is_template, render_template, render_template_file, OutputFormat,
39    TemplateRenderer,
40};
41pub use simple::{
42    quick, render, render_file, render_to_format, render_with_context, render_with_json,
43    TemplateBuilder,
44};
45pub use toml::{TomlFile, TomlLoader, TomlMerger, TomlWriter};
46pub use validation::{SchemaValidator, TemplateValidator, ValidationRule};
47// TODO: Re-enable integration exports after adding actix_web dependency
48// pub use integration::{WebIntegration, CliIntegration, TemplateCli, TemplateServer};
49
50/// Macro library content embedded at compile time
51pub const MACRO_LIBRARY: &str = include_str!("_macros.toml.tera");