20 lines
613 B
C#
20 lines
613 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);
|
|
}
|
|
}
|