Register template filter