Exemple #1
0
 public static IFileWithKnownFormatSync <Markdown, Markdown> AsMarkdownFile(this AbsolutePath path)
 {
     return(path.AsFile(abs => new Markdown(abs.ReadLines()),
                        (abs, markdown) => abs.WriteAllLines(markdown.Lines)));
 }
Exemple #2
0
 public static IFileWithKnownFormatSync <Html, Html> AsHtmlFile(this AbsolutePath path)
 {
     return(path.AsFile(abs => new Html(abs.ReadLines()),
                        (abs, html) => abs.WriteAllLines(html.Lines)));
 }