Class: CaptureTag
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 CaptureTag()
new CaptureTag():
CaptureTag
Returns
Properties
block
readonly
block:true
=true
Defined in
src/builtin/tags/capture.ts:14
end
readonly
end:string
="endcapture"
Defined in
src/builtin/tags/capture.ts:16
name
readonly
name:string
="capture"
Defined in
src/builtin/tags/capture.ts:15
nodeClass
protected
nodeClass: typeofCaptureNode
=CaptureNode
Defined in
src/builtin/tags/capture.ts:17
END_CAPTURE_BLOCK
protected
static
END_CAPTURE_BLOCK:Set
<string
>
Defined in
src/builtin/tags/capture.ts:11
RE_CAPTURE
protected
static
RE_CAPTURE:RegExp
Defined in
src/builtin/tags/capture.ts:12
Methods
parse()
parse(
stream
,environment
):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.
• environment: Environment
The active environment.