Skip to main content

Crate nenjo_xml

Crate nenjo_xml 

Source
Expand description

Generic prompt rendering: XML serialization, template engine.

This crate provides infrastructure for building structured LLM prompts. It has no knowledge of any specific domain — callers provide template variables as a HashMap<String, String> with dotted keys.

Re-exports§

pub use types::metadata_json_to_xml;
pub use types::render_items;
pub use xml::to_xml;
pub use xml::to_xml_pretty;
pub use xml::xml_escape;
pub use xml::xml_unescape;

Modules§

template
Generic template rendering using MiniJinja.
types
Generic rendering helpers.
xml
XML utilities for prompt rendering.