21 lines
696 B
C#
21 lines
696 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>
|
|
/// <param name="contextData">The data associated to the context.</param>
|
|
/// <returns>The generated text.</returns>
|
|
void GetText(KeyScope scope, TextWriter writer, object contextData);
|
|
}
|
|
}
|