public static async Task <string> GetTemplate(ILogger logger, string templateUrlOrName) { if (!string.IsNullOrEmpty(templateUrlOrName) && !templateUrlOrName.StartsWith("https://")) { templateUrlOrName = TemplateFactory.GetTemplateUrl(templateUrlOrName); } if (!string.IsNullOrEmpty(templateUrlOrName) && templateUrlOrName.StartsWith("https://")) { return(await Functions.Downloader.Download(logger, templateUrlOrName)); } return(null); }