rougail-output-doc/tests/docs/no_namespace/60_1family_dynamic_jinja.md

7.5 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
var:  # a suffix variable
  - val1
  - val2
dyn{{ identifier }}:
  description: A dynamic family
  dynamic:
    jinja: |
      {% for val in _.var %}
      {{ loop.index }}
      {% endfor %}      
    description: index of suffix value
  var: val  # a dynamic variable

Variables

Variable                                                                                                   Description                                                                                               
var
string standard mandatory unique multiple
A suffix variable.
Default:
- val1
- val2

A dynamic family

standard

This family builds families dynamically.

Identifiers: index of suffix value.

Variable                                                                                                   Description                                                                                               
dyn1.var or dyn2.var
string standard mandatory
A dynamic variable.
Default: val