[tutorial 038] A conditional hidden family with Jinja (config and doc)
This commit is contained in:
parent
97c6e42bde
commit
10ac420290
1 changed files with 14 additions and 6 deletions
20
README.md
20
README.md
|
@ -1,9 +1,9 @@
|
|||
- [Summary](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/branch/1.1/README.md)
|
||||
- [[tutorial 036] Variable type and parameters type are copied with default value](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_036/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_036~1..v1.1_036))
|
||||
- [[tutorial 037] Family: a dynamic family](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_037/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_037~1..v1.1_037))
|
||||
|
||||
# [tutorial 037] Family: a dynamic family
|
||||
# [tutorial 038] A conditional hidden family with Jinja
|
||||
|
||||
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_037~1..v1.1_037)
|
||||
[View the diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_038~1..v1.1_038)
|
||||
|
||||
|
||||
## Screenshot
|
||||
|
@ -74,7 +74,15 @@ manual:
|
|||
- HTTPS
|
||||
- SOCKS
|
||||
hidden:
|
||||
variable: manual.use_for_https
|
||||
jinja: |
|
||||
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
|
||||
HTTPS is same has HTTP
|
||||
{% endif %}
|
||||
params:
|
||||
my_identifier:
|
||||
type: identifier
|
||||
description: |
|
||||
in HTTPS case if "manual.use_for_https" is set to True
|
||||
|
||||
address:
|
||||
description: "{{ identifier }} address"
|
||||
|
@ -119,7 +127,7 @@ _`disabled`_
|
|||
|
||||
_`hidden`_
|
||||
|
||||
**Hidden**: manual.use_for_https.
|
||||
**Hidden**: in HTTPS case if "manual.use_for_https" is set to True.
|
||||
|
||||
|
||||
This family builds families dynamically.
|
||||
|
@ -134,4 +142,4 @@ This family builds families dynamically.
|
|||
|
||||
|
||||
|
||||
- [[tutorial 038] A conditional hidden family with Jinja](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_038/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_038~1..v1.1_038))
|
||||
- [[tutorial 039] A conditional disabled variable with identifier](https://forge.cloud.silique.fr/stove/rougail-tutorials/src/commit/v1.1_039/README.md) ([diff](https://forge.cloud.silique.fr/stove/rougail-tutorials/compare/v1.1_039~1..v1.1_039))
|
||||
|
|
Loading…
Reference in a new issue