Hooks to extend the Template API.