Register the template