Adding a split filter for templates