Expand description
Framework template system with XDG-compliant storage
This module provides runtime-loadable templates for framework-generated HTML (forms, flash messages, validation errors, error pages, etc.).
Templates are resolved in order:
- User customizations in
$XDG_CONFIG_HOME/acton-htmx/templates/framework/ - Cached defaults in
$XDG_CACHE_HOME/acton-htmx/templates/framework/ - Embedded fallbacks compiled into the binary
§Example
use acton_htmx::template::framework::FrameworkTemplates;
let templates = FrameworkTemplates::new()?;
// Render a form input
let html = templates.render("forms/input.html", minijinja::context! {
input_type => "text",
name => "email",
id => "email",
})?;Structs§
- Framework
Templates - Thread-safe framework template environment with hot reload support
Enums§
- Framework
Template Error - Errors that can occur when loading or rendering framework templates
Constants§
- TEMPLATE_
NAMES - Names of all framework templates