private static void GenerateTemplatedContentWithContexts() { ParseResult res = new Parser().Parse(new ParseContext(File.ReadAllText("Test-1.txt"))); EvaluationContext ec = new EvaluationContext(Client, "client"); ec.AddNamedContext(new CompanyDetails { Address = "10, The Lane, Somewhere", RegisteredName = "ABC Ltd" }, "company"); ExecutionContext ctx = new ExecutionContext(new StringWriter(), ec); res.Execute(ctx); Console.WriteLine("******************** Substituted content"); Console.WriteLine(ctx.ToString()); }