pub fn render_auto_with_engine(
engine: &dyn TemplateEngine,
template: &str,
data: &Value,
theme: &Theme,
mode: OutputMode,
context_registry: &ContextRegistry,
render_context: &RenderContext<'_>,
) -> Result<String, RenderError>Expand description
Auto-dispatches rendering using a provided TemplateEngine.
This is similar to render_auto_with_context but allows using a pre-configured
TemplateEngine trait object instead of creating a new dictionary-based engine.