Enhanced template token rendering and custom filters (Feature request #550)