We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
To completely understand how components work, it is very importent to understand the render flow, at least the basics. And they are extemely simple.
Mask or Html templates are parsed to Mask AST. Essential nodes and their properties are:
Node
tagName: String
attr: Object
nodes: Array
parent: Node
TextNode
content: String|Function
StatementNode
expression: String
Each render iteration is visiting a node and running appropriate Builder on it. Builder excepts model, context, element and current controller.
📍 If render function is not overriden, then builder creates a component in 2 stages:
render
renderStart
renderEnd
This note is especially interesting for the NodeJS rendering: while start is called on the backend, and the end occures on the frontend.
start
end
🏁