UnlessBlock

@Serializable
@SerialName(value = "UnlessBlock")
class UnlessBlock(val expression: FixtureExpressionChain, val body: List<FixtureSegment>, val elseBody: List<FixtureSegment>? = null, val openTrim: FixtureTrim = FixtureTrim(), val closeTrim: FixtureTrim = FixtureTrim(), val elseTrim: FixtureTrim? = null) : FixtureSegment(source)

Mirror of a {{#unless X}} body {{else}} elseBody {{/unless}} block.

Constructors

Link copied to clipboard
constructor(expression: FixtureExpressionChain, body: List<FixtureSegment>, elseBody: List<FixtureSegment>? = null, openTrim: FixtureTrim = FixtureTrim(), closeTrim: FixtureTrim = FixtureTrim(), elseTrim: FixtureTrim? = null)

Properties

Link copied to clipboard

the block's body segments.

Link copied to clipboard

the {{/unless}} closing tag's whitespace-control state.

Link copied to clipboard

the block's {{else}} segments, or null if absent.

Link copied to clipboard

the {{else}} tag's whitespace-control state, or null when there is no else arm or the else tag carries no ~ marker.

Link copied to clipboard

the guarded expression chain.

Link copied to clipboard

the {{#unless}} opening tag's whitespace-control state.