[tutorial v1.1_052] Jinja with a parameter

This commit is contained in:
egarette@silique.fr 2025-11-09 18:39:37 +01:00
parent 3d07945273
commit 87aa3b049a

View file

@ -10,9 +10,12 @@ 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 %}
params:
my_identifier:
type: identifier
dynamic: dynamic:
- HTTPS - HTTPS
- SOCKS - SOCKS