Interface TwingDoNode

Represents a do node.

The do tag works exactly like the regular variable expression ({{ ... }}) just that it doesn't print anything: {% do 1 + 2 %}

interface TwingDoNode {
    attributes: TwingBaseNodeAttributes;
    children: {
        body: TwingBaseExpressionNode;
    };
    column: number;
    line: number;
    tag: null | string;
    type: "do";
    execute(executionContext): Promise<any>;
}

Hierarchy (view full)

Properties

children: {
    body: TwingBaseExpressionNode;
}

Type declaration

column: number
line: number
tag: null | string
type: "do"

Methods

Generated using TypeDoc