[tutorial v1.1_072] Jinja with a parameter

This commit is contained in:
egarette@silique.fr 2025-12-02 16:18:51 +01:00
parent d7fd4fc49d
commit 79b1619466

View file

@ -10,10 +10,13 @@ manual:
description: '{{ identifier }} Proxy' description: '{{ identifier }} Proxy'
hidden: hidden:
jinja: |- jinja: |-
{% if _.use_for_https %} {% if my_identifier == 'HTTPS' and _.use_for_https %}
HTTPS is same has HTTP HTTPS is same has HTTP
{% endif %} {% endif %}
description: in HTTPS case if "_.use_for_https" is set to "true" description: in HTTPS case if "_.use_for_https" is set to "true"
params:
my_identifier:
type: identifier
dynamic: dynamic:
- HTTPS - HTTPS
- SOCKS - SOCKS