pub fn render_auto_with_engine_split(
engine: &dyn TemplateEngine,
template: &str,
data: &Value,
theme: &Theme,
mode: OutputMode,
context_registry: &ContextRegistry,
render_context: &RenderContext<'_>,
) -> Result<RenderResult, RenderError>Expand description
Auto-dispatches rendering and returns both formatted and raw output.
This is similar to render_auto_with_engine but returns a RenderResult
containing both the formatted output (with ANSI codes) and the raw output
(with style tags but no ANSI codes). The raw output is useful for piping
to external commands.
For structured modes (JSON, YAML, etc.), both formatted and raw are the same since no style processing occurs.