{% with msg = get_flashed_messages() %} {% if msg %} {{ msg|last }} {% endif %} {% endwith %}

Please select an item.