Skip to main content

Class: IncludeNode

Implements

Constructors

new IncludeNode()

new IncludeNode(token, templateName, bindName?, alias?, args?): IncludeNode

Parameters

token: Token

The token that started this node. Used to add line and column numbers to error messages.

templateName: StringLiteral | Identifier

bindName?: Identifier

alias?: string

args? = {}

Returns

IncludeNode

Defined in

src/builtin/tags/include.ts:112

Properties

alias?

readonly optional alias: string

Defined in

src/builtin/tags/include.ts:116


args

readonly args: object = {}

Index Signature

[index: string]: Expression

Defined in

src/builtin/tags/include.ts:117


bindName?

readonly optional bindName: Identifier

Defined in

src/builtin/tags/include.ts:115


tag

protected tag: string = "include"

Defined in

src/builtin/tags/include.ts:110


templateName

readonly templateName: StringLiteral | Identifier

Defined in

src/builtin/tags/include.ts:114


token

readonly token: Token

The token that started this node. Used to add line and column numbers to error messages.

Implementation of

Node.token

Defined in

src/builtin/tags/include.ts:113

Methods

children()

children(): ChildNode[]

Return an array of child nodes.

Returns

ChildNode[]

Implementation of

Node.children

Defined in

src/builtin/tags/include.ts:192


render()

render(context, out): Promise<void>

Render this node to the given output stream.

Parameters

context: RenderContext

The active render context.

out: RenderStream

The stream to output to.

Returns

Promise<void>

Implementation of

Node.render

Defined in

src/builtin/tags/include.ts:120


renderSync()

renderSync(context, out): void

A synchronous version of render.

Parameters

context: RenderContext

out: RenderStream

Returns

void

See

render

Implementation of

Node.renderSync

Defined in

src/builtin/tags/include.ts:157