コード例 #1
0
 public static Page DeserializeFromFile(string file, DirectoryInfo publishedDirectory, IYamlMarkdown yamlMarkdown)
 {
     return(MarkdownDocumentSerialization.DeserializeFromFile(
                (relativeUri, title, content, published, author) => new Page(relativeUri, title, content, published, author),
                file,
                publishedDirectory,
                yamlMarkdown));
 }
コード例 #2
0
 public static BlogPost Deserialize(string relativeUri, string markdownWithFrontMatter, IYamlMarkdown yamlMarkdown)
 {
     return(MarkdownDocumentSerialization.Deserialize(
                (rUri, title, content, published, author) => new BlogPost(rUri, title, content, published, author),
                relativeUri,
                markdownWithFrontMatter,
                yamlMarkdown));
 }