MustacheSharp/mustache-sharp/IGenerator.cs

20 lines
594 B
C#

using System;
using System.IO;
namespace Mustache
{
/// <summary>
/// Applies the values of an object to the format plan, generating a string.
/// </summary>
internal interface IGenerator
{
/// <summary>
/// Generates the text when applying the format plan.
/// </summary>
/// <param name="scope">The current lexical scope of the keys.</param>
/// <param name="writer">The text writer to send all text to.</param>
/// <returns>The generated text.</returns>
void GetText(KeyScope scope, TextWriter writer);
}
}