Class: RenderNode
Implements
Constructors
new RenderNode()
new RenderNode(
token,templateName,bindLoop,bindName?,alias?,args?):RenderNode
Parameters
• token: Token
The token that started this node. Used to add line and column numbers to error messages.
• templateName: StringLiteral | Identifier
• bindLoop: boolean
• bindName?: Identifier
• alias?: string
• args? = {}
Returns
Defined in
src/builtin/tags/render.ts:127
Properties
alias?
readonlyoptionalalias:string
Defined in
src/builtin/tags/render.ts:132
args
readonlyargs:object={}
Index Signature
[index: string]: Expression
Defined in
src/builtin/tags/render.ts:133
bindLoop
readonlybindLoop:boolean
Defined in
src/builtin/tags/render.ts:130
bindName?
readonlyoptionalbindName:Identifier
Defined in
src/builtin/tags/render.ts:131
tag
protectedtag:string="render"
Defined in
src/builtin/tags/render.ts:125
templateName
readonlytemplateName:StringLiteral|Identifier
Defined in
src/builtin/tags/render.ts:129
token
readonlytoken:Token
The token that started this node. Used to add line and column numbers to error messages.
Implementation of
Defined in
src/builtin/tags/render.ts:128
Methods
children()
children():
ChildNode[]
Return an array of child nodes.
Returns
Implementation of
Defined in
src/builtin/tags/render.ts:220
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
Defined in
src/builtin/tags/render.ts:136
renderSync()
renderSync(
context,out):void
A synchronous version of render.
Parameters
• context: RenderContext
• out: RenderStream
Returns
void