EachBlock

@Serializable
@SerialName(value = "EachBlock")
class EachBlock(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 {{#each identifier }} body {{else}} elseBody {{/each}} 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 {{/each}} 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 iterated expression chain.

Link copied to clipboard

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