rougail-output-doc/tests/docs/base/60_6family_dynamic_sub_dynamic.sh

136 lines
12 KiB
Bash
Raw Normal View History

2024-11-20 21:12:56 +01:00
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
var: # A identifier variable
- val1
- val2
dyn{{ identifier }}:
description: A dynamic family
dynamic:
variable: _.var
var:
description: A dynamic variable
multi: true
default:
jinja: |
{% for val in __.var %}
t{{ val }}
{% endfor %}
description: add 't' to each var value
dyn_{{ identifier }}:
description: a Second dynamic variable
dynamic:
variable: rougail.dyn{{ identifier }}.var
var:
description: A variable dynamic
default:
type: identifier
var_identifier:
description: identifier from first family
default:
type: identifier
identifier: 0
var_identifiers:
description: merge identifiers
default:
jinja: |
{{ s1 }}-{{ s2 }}
params:
s1:
type: identifier
identifier: 0
s2:
type: identifier
identifier: 1
description: join identifier 1 et identifier 2
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
Variables for "Rougail" ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Variable                                               Description                                          
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rougail.var
string standard mandatory unique multiple A identifier variable.
Default:
 • val1
 • val2
 |
A dynamic family
standard
This family builds families dynamically.
Identifiers: the value of the variable "rougail.var".
 Variable                                               Description                                          
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rougail.dynval1.var
rougail.dynval2.var
string standard mandatory unique multiple A dynamic variable.
Default: add 't' to each var value.
a Second dynamic variable
standard
This family builds families dynamically.
Identifiers:
 • the value of the variable "rougail.dynval1.var"
 • the value of the variable "rougail.dynval2.var"
 Variable                                               Description                                          
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rougail.dynval1.dyn_tval1.var
rougail.dynval1.dyn_tval2.var
rougail.dynval2.dyn_tval1.var
rougail.dynval2.dyn_tval2.var
string standard mandatory A variable dynamic.
Default: the value of the identifier.
rougail.dynval1.dyn_tval1.var_identifier
rougail.dynval1.dyn_tval2.var_identifier
rougail.dynval2.dyn_tval1.var_identifier
rougail.dynval2.dyn_tval2.var_identifier
string standard mandatory Identifier from first family.
Default: the value of the identifier.
rougail.dynval1.dyn_tval1.var_identifiers
rougail.dynval1.dyn_tval2.var_identifiers
rougail.dynval2.dyn_tval1.var_identifiers
rougail.dynval2.dyn_tval2.var_identifiers
string standard mandatory Merge identifiers.
Default: join identifier 1 et identifier 2.