{% set base_url = "http://127.0.0.1:7860/?" %} {% set encoded_urls = [] %} {% for i, url in enumerate(image_urls) %} {% set encoded_urls = encoded_urls + [ "img" ~ loop.index ~ "=" ~ url | urlencode ] %} {% endfor %} {% set full_url = base_url + encoded_urls | join("&") %} # Image Gallery