See the dojox/dtl/_base reference documentation for more information.
Pass one of these when rendering a template to tell the template what values to use.
Parameter | Type | Description |
---|---|---|
dict | undefined |
A list of any DOM-specific node objects
Any object that's used in the constructor or added through the push function much implement the render, unrender, and clone functions.
Parameter | Type | Description |
---|---|---|
nodes | Node[] |
Turn a simple array into a set of objects
This is also used by all tags to move through the list of nodes.
Parameter | Type | Description |
---|---|---|
tokens | undefined |
A node to be processed as a variable
Will render an object that supports the render function and the getRootNode function
Parameter | Type | Description |
---|---|---|
str | undefined |
Uses a string to find (and manipulate) a variable
Parameter | Type | Description |
---|---|---|
token | undefined |
Allows us to render a group of nodes
Parameter | Type | Description |
---|---|---|
nodes | Node[] |
Parser used during initialization and for tag groups.
Parameter | Type | Description |
---|---|---|
tokens | undefined |
A node to be processed as a variable
Parameter | Type | Description |
---|---|---|
str | undefined |
Parameter | Type | Description |
---|---|---|
key | undefined | |
value | undefined |
Changes the parent during render/unrender
Parameter | Type | Description |
---|---|---|
node | undefined | |
up | Boolean |
Optional
|
root | Bookean |
Represents a runtime context used by DTL templates.
Parameter | Type | Description |
---|---|---|
dict | Object |
Allows the manipulation of DOM
Use this to append a child, change the parent, or change the attribute of the current node.
Parameter | Type | Description |
---|---|---|
parent | Node | The parent node. |
Parameter | Type | Description |
---|---|---|
args | undefined | |
node | undefined |
The template class for DOM templating.
Parameter | Type | Description |
---|---|---|
obj | String | DOMNode | dojo/Url |
Parameter | Type | Description |
---|---|---|
args | undefined | |
node | undefined |
The base class for text-based templates.
Parameter | Type | Description |
---|---|---|
template | String | dojo/_base/url | The string or location of the string to use as a template |
isString | Boolean | Indicates whether the template is a string or a url. |
Parameter | Type | Description |
---|---|---|
token_type | undefined | |
contents | undefined |