Beispiel #1
0
 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 = VirtualPathProvider.GetFile(template.FilePath).ReadAllText();
     foreach (var markdownReplaceToken in MarkdownReplaceTokens)
     {
         contents = contents.Replace(markdownReplaceToken.Key, markdownReplaceToken.Value);
     }
     template.Reload(contents);
 }