using System;
using System.Collections.Generic;
using System.IO;
namespace Mustache
{
///
/// Defines a tag that outputs a newline.
///
internal sealed class NewlineTagDefinition : InlineTagDefinition
{
///
/// Initializes a new instance of an NewlineTagDefinition.
///
public NewlineTagDefinition()
: base("newline")
{
}
///
/// Gets the text to output.
///
/// The writer to write the output to.
/// The arguments passed to the tag.
/// Extra data passed along with the context.
public override void GetText(TextWriter writer, Dictionary arguments, object contextData)
{
writer.Write(Environment.NewLine);
}
}
}