Skip to main content

ralph/template/loader/
mod.rs

1//! Purpose: Provide the public template-loading API surface for built-in and
2//! custom task templates.
3//!
4//! Responsibilities:
5//! - Declare the `template::loader` child modules.
6//! - Re-export the stable public API used by CLI surfaces and callers.
7//!
8//! Scope:
9//! - Thin facade only; implementation lives in sibling files under
10//!   `template/loader/`.
11//!
12//! Usage:
13//! - Import public template-loading helpers through `crate::template` or
14//!   `crate::template::loader`.
15//!
16//! Invariants/Assumptions:
17//! - The public API surface remains stable across the split.
18//! - Custom-template precedence, validation, and substitution behavior remain
19//!   unchanged.
20
21mod list;
22mod load;
23mod types;
24
25#[cfg(test)]
26mod tests;
27
28pub use list::{list_templates, template_exists};
29pub use load::{
30    get_template_context, load_template, load_template_with_context,
31    load_template_with_context_legacy,
32};
33pub use types::{LoadedTemplate, TemplateError, TemplateInfo, TemplateSource};