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_GIT_FILTERS
Git filter installation snippets (dodot git-show-filters).
TEMPLATE_GIT_INSTALL_ALIAS
dodot git-install-alias outcome message.
TEMPLATE_GIT_SHOW_ALIAS
dodot git-show-alias print-for-paste output.
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_PROMPTS_LIST
Dismissed-prompt registry listing (dodot prompts list).
TEMPLATE_REFRESH
dodot refresh per-mode output (default report / quiet / list-paths).
TEMPLATE_TEMPLATE_INSTALL_FILTER
dodot template install-filter outcome message.
TEMPLATE_TRANSFORM_CHECK
dodot transform check per-file action list + optional unresolved- marker section. See commands::transform.
TEMPLATE_TRANSFORM_INSTALL_HOOK
dodot transform install-hook outcome message (created / appended / already_installed).
TEMPLATE_TRANSFORM_STATUS
dodot transform status per-file state list.
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.