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

135 lines
12 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.