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

71 lines
1.2 KiB
Text

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: '1.1'
dyn{{ identifier }}:
description: a dynamic family
dynamic:
- val1
- val2
hidden:
jinja: |
{% if suffix == 'val2' %}
disabled
{% endif %}
params:
suffix:
type: identifier
description: if suffix == 'val2'
var:
description: a variable
mandatory: false
family: # a family
var:
description: a new variable
mandatory: false
----
== Variables for "Rougail"
=== a dynamic family
`standard` `__hidden__`
**Hidden**: if suffix == 'val2'.
This family builds families dynamically.
**Identifiers**:
* val1
* val2
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.dyn__val1__.var** +
**rougail.dyn__val2__.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
A variable.
|====
==== a family
`standard`
[cols="1a,1a"]
|====
| Variable | Description
|
**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.
|====