[tutorial 042] Jinja with a parameter

This commit is contained in:
egarette@silique.fr 2025-11-04 19:22:22 +01:00
parent 9fd233b885
commit 011e278245

View file

@ -10,9 +10,12 @@ manual:
description: '{{ identifier }} Proxy' description: '{{ identifier }} Proxy'
hidden: hidden:
jinja: |- jinja: |-
{% if manual.use_for_https %} {% if my_identifier == 'HTTPS' and manual.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