Extend the template before loading.