{# Relative to this page, so the assets still resolve behind a proxy that strips a path prefix. #} {% set static_root = '../' * (request.path.count('/') - 1) ~ url_for('static', filename='')[request.script_root|length + 1:] %} {% set catalog = entry_assets('catalog') %} {% for css in catalog.css %} {% endfor %}