mmirage.core.writer β WriterΒΆ
Template rendererΒΆ
Template renderer for generating output from variable environments.
- class mmirage.core.writer.renderer.TemplateRenderer(output_schema)[source]ΒΆ
Bases:
objectRenderer for generating output from variable environments using Jinja2 templates.
Supports nested templates (dicts and lists), optimized handling of simple variable references, and proper handling of non-string values like PIL Images.
- output_schemaΒΆ
Dictionary defining the structure of output samples.