// Load the template string string templateString = "Hello {name}!"; // Compile the template var template = Dust.Compile(templateString, "myTemplate"); // Render the template with context var output = Dust.Render(template, new { name = "John" }); // Output: Hello John! Console.WriteLine(output);
// Load the template string string templateString = @"