Template engine extensions