How to do case insensitive string comparison?
In my case , i need to add a class menu_active when topic.title equals page.slug. but,now
- topic.title= home
- page.slug = Home
so my condition fails
nav_bar.html
{% for topic in landing_pages %}
<li role="presentation">
<a class="{% if topic.title == page.slug %}menu_active{% endif %}" href="/{{topic.slug}}/">{{topic.title}}</a>
</li>
{% endfor %}