using System;
using System.IO;
namespace Mustache
{
///
/// Holds the objects to use when processing a child context of another tag.
///
public sealed class NestedContext
{
///
/// Initializes a new instance of a NestedContext.
///
public NestedContext()
{
}
///
/// Gets or sets the writer to use when generating the child context.
///
/// Setting the writer to null will indicate that the tag's writer should be used.
public TextWriter Writer
{
get;
set;
}
///
/// Gets or sets whether the text sent to the returned writer needs to be added
/// to the parent tag's writer. This should be false if the parent writer is
/// being returned or is being wrapped.
///
public bool WriterNeedsConsidated
{
get;
set;
}
///
/// Gets or sets the scope to use when generating the child context.
///
/// Setting the scope to null will indicate that the current scope should be used.
public KeyScope KeyScope
{
get;
set;
}
///
/// Gets or sets data associated with the context.
///
public object Data { get; set; }
}
}