{% with 'timeline' as gallery_id %} {% for event in events %} {% include 'kegweb/includes/timeline_event.html' %} {% endfor %} {% endwith %}