2013-05-03 12:44:51 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Mustache
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the objects to use when processing a child context of another tag.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed class NestedContext
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of a NestedContext.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public NestedContext()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the writer to use when generating the child context.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Setting the writer to null will indicate that the tag's writer should be used.</remarks>
|
2013-08-17 03:35:46 +00:00
|
|
|
|
public TextWriter Writer { get; set; }
|
2013-05-03 12:44:51 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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.
|
|
|
|
|
/// </summary>
|
2013-08-17 03:35:46 +00:00
|
|
|
|
public bool WriterNeedsConsidated { get; set; }
|
2013-05-03 12:44:51 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-08-17 03:35:46 +00:00
|
|
|
|
/// Gets or sets the key scope to use when generating the child context.
|
2013-05-03 12:44:51 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Setting the scope to null will indicate that the current scope should be used.</remarks>
|
2013-08-17 03:35:46 +00:00
|
|
|
|
public Scope KeyScope { get; set; }
|
2013-07-20 16:06:38 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets data associated with the context.
|
|
|
|
|
/// </summary>
|
2013-08-17 03:35:46 +00:00
|
|
|
|
public Scope ContextScope { get; set; }
|
2013-05-03 12:44:51 +00:00
|
|
|
|
}
|
|
|
|
|
}
|