Set the configuration of template.