Template extension