Check if key exists in array in nunjucks template (Node JS)
The only way I found is looping through the array like so:
{% for param in user_params %} {% if param==='add_user' %} do stuff in html {% endif %}{% endfor %}
Ugly and full of holes, but will fit most use cases.
You're probably better off making a custom filter