[tutorial v1.1_072] Jinja with a parameter

This commit is contained in:
egarette@silique.fr 2025-11-22 14:13:50 +01:00
parent 60e79daeb1
commit 084de755ba

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