Skip to main content

Class: RenderTag

A class that implements the Tag interface is responsible for parsing one or more tokens from a token stream, and returning an ast.Node to be added into the abstract syntax tree.

Implements

Constructors

new RenderTag()

new RenderTag(): RenderTag

Returns

RenderTag

Properties

block

readonly block: false = false

Defined in

src/builtin/tags/render.ts:34


name

readonly name: string = "render"

Defined in

src/builtin/tags/render.ts:35


nodeClass

protected nodeClass: typeof RenderNode = RenderNode

Defined in

src/builtin/tags/render.ts:36

Methods

parse()

parse(stream): Node

Create a syntax tree node by parsing tokens from the token stream.

If implementing a block tag (one with a start and end tag), the stream should be left with the end tag as its current token.

Parameters

stream: TokenStream

A stream of template tokens.

Returns

Node

Implementation of

Tag.parse

Defined in

src/builtin/tags/render.ts:48


parseArgument()

protected parseArgument(stream): [string, Expression]

Parameters

stream: ExpressionTokenStream

Returns

[string, Expression]

Defined in

src/builtin/tags/render.ts:38