{% load cycle from future %} {% load firstof from future %} {% cycle 'row1' 'row2' %} {% firstof "A" "B" %}