Como cadastrar e configurar um template?