new functions and {% empty %} compatibility (dtl)