using System;
using System.Collections.Generic;
using System.IO;
namespace Mustache
{
///
/// Generates a static block of text.
///
internal sealed class StaticGenerator : IGenerator
{
private readonly string value;
///
/// Initializes a new instance of a StaticGenerator.
///
public StaticGenerator(string value)
{
this.value = value.Replace(Environment.NewLine, String.Empty);
}
///
/// Gets or sets the static text.
///
public string Value
{
get { return value; }
}
void IGenerator.GetText(Scope scope, TextWriter writer, Scope context)
{
writer.Write(Value);
}
}
}