{% set items = { 'View Profile' : 'profile_view', 'Edit Profile' : 'profile_edit', 'Change Password' : 'chg_pwd' } %}
{% for label, route in items %} {% set attr = "btn btn-default btn-sm" %} {{ label }} {% endfor %}