{{ if [element:sortable] and [element:sort_by] == [element:attr] and [element:sort_direction] == 'desc'}} {{ if [element:value] }} [element:value] {{ endif }} {{ else }} {{ if [element:value] }} [element:value] {{ endif }} {{ endif }} {{ if [element:children] }} {{ for child in [element:children] }} [child:render] {{ endfor }} {{ endif }}