module

Cl8r::Model::TemplateLoader

Loads template files dynamically from disk directories and XDG paths, enabling user archetype extensibility and live overrides without binary recompilation.

Class methods

custom_paths
Source
custom_paths=(custom_paths : Array(String))
Source
list_files(relative_dir : String) : Array(String)

Discovers all template file basenames in the specified relative directory across search paths.

Source
load(relative_path : String, fallback_content : String) : String

Attempts to read the template file from search paths, falling back to embedded default.

Source
search_directories(relative_dir : String) : Array(String)

Returns the ordered list of directories searched for template resources.

Source