Skip to main content

Module xml_renderer

Module xml_renderer 

Source
Expand description

Semantic XML renderers for user-friendly output.

This module provides pure functions that transform raw XML into human-readable terminal output. Each XML type gets a dedicated renderer with semantic understanding of its content.

§Architecture

The renderers receive raw XML from UIEvent::XmlOutput events and transform them into formatted strings for terminal display. This keeps rendering logic at the boundary (event loop) rather than in phase functions.

§Graceful Degradation

If XML parsing fails, renderers fall back to displaying the raw XML with a warning message. This ensures users always see output even if the format is unexpected.

Functions§

render_xml
Render XML content based on its type.