docx-templating 1.0.0

Rust library for DOCX templating with variable replacement, conditionals, and loops
Documentation
//! Template evaluation.
//!
//! The evaluator is the only stage that reads a context and template options.
//! It turns a bound template into a [`Plan`](crate::domain::plan::Plan) whose
//! edits already carry their final coordinates. Loop iteration plans are local
//! to the clone they repeat, so `apply` never has to shift an index.
//!
//! The work is split into small modules:
//!
//! - [`conversion`] formats JSON values for insertion.
//! - [`path`] walks the remainder of a path once a starting value is known.
//! - [`truthiness`] decides whether a value is true in a conditional.
//! - [`evaluator`] owns scopes, coordinates and the resolved plan tree.

mod conversion;
mod error;
mod evaluator;
mod path;
mod truthiness;

pub use error::RenderError;
pub(crate) use evaluator::evaluate;
#[cfg(test)]
pub(crate) use path::resolve_path;