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

68 lines
1.8 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.dynval1.var** or **rougail.dynval2.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
A variable.
|====
==== a family
`standard`
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.dynval1.family.var** or **rougail.dynval2.family.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
A new variable.
|====