DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.12.3" />

 MemoryTemplate

public static class MemoryTemplate
Represents various extensions for MemoryTemplate<T> type.
public static void Render(this ref MemoryTemplate template, StringBuilder output, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.

public static string Render(this ref MemoryTemplate template, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.

public static void Render(this ref MemoryTemplate template, TextWriter output, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.