using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Beam.Temporary.Cli.Templates.Classic { internal class ClassicTemplates { public static void Register(SharedDataDictionary sdd) { sdd.Files.TryAdd( new("aeqw89:files:templates:classic:content_page"), new("C:\\Users\\qwsdc\\source\\repos\\Beam\\Beam.Temporary.Cli\\Templates\\Classic\\Content.template.html", "htmlpage", "templates")); sdd.Files.TryAdd( new("aeqw89:files:templates:classic:title_page"), new("C:\\Users\\qwsdc\\source\\repos\\Beam\\Beam.Temporary.Cli\\Templates\\Classic\\Title.template.html", "htmlpage", "templates")); sdd.Files.TryAdd( new("aeqw89:files:templates:classic:styles_page"), new("C:\\Users\\qwsdc\\source\\repos\\Beam\\Beam.Temporary.Cli\\Templates\\Classic\\Styles.template.css", "styles", "templates")); sdd.Files.TryAdd( new("aeqw89:files:templates:classic:no_content_page"), new("C:\\Users\\qwsdc\\source\\repos\\Beam\\Beam.Temporary.Cli\\Templates\\Classic\\NoContent.template.html", "htmlpage", "templates")); } } internal static class DictionaryOfFileExtensions { public static string ReadToString(this Dictionary dict, T key) where T: notnull { return System.IO.File.ReadAllText(dict[key].Path); } } }