rougail-output-doc/tests/docs/base/60_5family_dynamic_hidden_suffix.adoc

72 lines
1.2 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
---
2024-07-10 21:27:48 +02:00
version: '1.1'
dyn{{ identifier }}:
2024-07-10 21:27:48 +02:00
description: a dynamic family
dynamic:
- val1
- val2
hidden:
jinja: |
{% if suffix == 'val2' %}
disabled
{% endif %}
params:
suffix:
type: identifier
2024-07-10 21:27:48 +02:00
description: if suffix == 'val2'
var:
description: a variable
mandatory: false
2024-07-10 21:27:48 +02:00
family: # a family
var:
description: a new variable
mandatory: false
2024-07-10 21:27:48 +02:00
----
2024-11-15 08:13:45 +01:00
== Variables for "Rougail"
2024-07-10 21:27:48 +02:00
=== a dynamic family
2024-11-15 08:13:45 +01:00
`standard` `__hidden__`
2024-07-10 21:27:48 +02:00
2024-11-15 08:13:45 +01:00
**Hidden**: if suffix == 'val2'.
2024-07-10 21:27:48 +02:00
This family builds families dynamically.
**Identifiers**:
2024-07-10 21:27:48 +02:00
* val1
* val2
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
2024-07-10 21:27:48 +02:00
|
2024-11-15 08:13:45 +01:00
**rougail.dyn__val1__.var** +
**rougail.dyn__val2__.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
A variable.
2024-07-10 21:27:48 +02:00
|====
==== a family
`standard`
2024-07-10 21:27:48 +02:00
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
2024-07-10 21:27:48 +02:00
|
2024-11-15 08:13:45 +01:00
**rougail.dyn__val1__.family.var** +
**rougail.dyn__val2__.family.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
A new variable.
|====
2024-07-10 21:27:48 +02:00