ComfyUI Node
Mustache Variables
A ComfyUI node in text/template with 2 inputs and 1 output.
Mustache Variables
- variable_sets
- variable_defs
◄yaml_texthaircolor:
- brown
- blonde
leglength:
- short
- long
- weird
►
Categorytext/template
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| yaml_text | STRING | haircolor: - brown - blonde leglength: - short - long - weird | YAML mapping of variable names to values. Each key becomes a mustache variable and each value should usually be a list of render options. Scalar values are accepted as shorthand for a single-item list. If the optional variable_sets input is connected, this YAML is treated as a mustache template and rendered once per variable-setting entry before parsing. |
| variable_setsopt | MUSTACHE_VARIABLE_LIST | Optional concrete variable settings used to render templated YAML before parsing. This lets you chain one mustache-variable stage into another. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| variable_defs | MUSTACHE_VARIABLES | — |