static void Main() { TemplateEngine dt = new TemplateEngine(); dt.LoadFromFile("Template.tpl"); Book book = new Book(); dt.SetValue("bk", book); dt.UsingNamespace("CSharp,Demo"); string output = dt.Run(); Console.WriteLine(output); }