2013-01-09 02:33:53 +00:00
|
|
|
|
using System;
|
2013-01-16 20:10:25 +00:00
|
|
|
|
using System.IO;
|
2013-01-09 02:33:53 +00:00
|
|
|
|
|
|
|
|
|
namespace mustache
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Applies the values of an object to the format plan, generating a string.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal interface IGenerator
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-01-10 02:17:45 +00:00
|
|
|
|
/// Generates the text when applying the format plan.
|
2013-01-09 02:33:53 +00:00
|
|
|
|
/// </summary>
|
2013-01-10 02:17:45 +00:00
|
|
|
|
/// <param name="scope">The current lexical scope of the keys.</param>
|
2013-01-16 20:10:25 +00:00
|
|
|
|
/// <param name="writer">The text writer to send all text to.</param>
|
2013-01-09 02:33:53 +00:00
|
|
|
|
/// <returns>The generated text.</returns>
|
2013-01-16 20:10:25 +00:00
|
|
|
|
void GetText(KeyScope scope, TextWriter writer);
|
2013-01-09 02:33:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|