2013-01-10 02:17:45 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace mustache
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines a tag that renders its content depending on the truthyness
|
|
|
|
|
/// of its argument, with optional elif and else nested tags.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal sealed class IfTagDefinition : ConditionTagDefinition
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of a IfTagDefinition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IfTagDefinition()
|
|
|
|
|
: base("if")
|
|
|
|
|
{
|
|
|
|
|
}
|
2013-01-12 19:53:12 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets whether the tag only exists within the scope of its parent.
|
|
|
|
|
/// </summary>
|
|
|
|
|
protected override bool GetIsContextSensitive()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2013-01-10 02:17:45 +00:00
|
|
|
|
}
|
|
|
|
|
}
|