private void ReloadTemplate(MarkdownTemplate template) { var contents = File.ReadAllText(template.FilePath); foreach (var markdownReplaceToken in MarkdownReplaceTokens) { contents = contents.Replace(markdownReplaceToken.Key, markdownReplaceToken.Value); } template.Reload(contents); }
private void ReloadTemplate(MarkdownTemplate template) { var contents = File.ReadAllText(template.FilePath); if (!string.IsNullOrEmpty(this.WebHostUrl)) { contents = contents.Replace(WebHostUrlPlaceHolder, WebHostUrl.WithTrailingSlash()); } template.Reload(contents); }