Skip to main content

Module render

Module render 

Source
Expand description

Rendering infrastructure for dodot output.

Wraps standout-render to provide a consistent rendering pipeline across all commands. The theme and templates are defined here; the CLI layer just picks an OutputMode.

Constants§

TEMPLATE_LIST
List — just pack names.
TEMPLATE_MESSAGE
Simple message output (init, fill, adopt, addignore).
TEMPLATE_PACK_STATUS
Status / up / down — pack-level output with file listings.
TEMPLATE_PROBE
Probe — deployment map, data-dir tree, summary. Branches on the kind field of the serialized result.
TEMPLATE_TUTORIAL_ANNOTATE_STATUS
TEMPLATE_TUTORIAL_CHECK_ROOT
TEMPLATE_TUTORIAL_CONCEPT_SHELL
TEMPLATE_TUTORIAL_CONCEPT_TARGETS
TEMPLATE_TUTORIAL_DRY_RUN
TEMPLATE_TUTORIAL_INTRO
TEMPLATE_TUTORIAL_NO_PACKS
TEMPLATE_TUTORIAL_OUTRO
TEMPLATE_TUTORIAL_PICK_PACK
TEMPLATE_TUTORIAL_REAL_UP
TEMPLATE_TUTORIAL_SHOW_STATUS
TUTORIAL_STEP_TEMPLATES
Pairs of (name, body) for every tutorial step template.

Functions§

create_renderer
Create a pre-compiled renderer with all dodot templates registered.
create_theme
Create the dodot theme from the embedded YAML definition.
render
Render a template with the given data and output mode.
render_tutorial_step
Render a tutorial step template with the dodot theme.