I am having a pyramid based jinja2 website. I want to compare the jinja2 variable with a js variable stored in the window object, any suggestions on how I can achieve this?
{% for summary in dashboard_dict.summaries %}
<div class="summary-list">
<div class="w-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-bag"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>
</div>
<div class="w-summary-details">
<div class="w-summary-info">
<h6>{{summary.label}}</h6>
<p class="summary-count" id="accordato-count">{{summary.value}}</p>
</div>
<div class="w-summary-stats">
<div class="progress">
<div class="progress-bar bg-gradient-secondary" role="progressbar" style="width: {{summary.value}}%" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
{% endfor %}
I am trying to compare the summary.label
with window.variable