<dict> create a dict object
- name
- dict
- xml namespace
- http://moyaproject.com
Create a dictionary object. A dictionary maps keys on to values. The keys and values are defined in the enclosing block, or via the let map.
Example
<dict dst="species">
<str dst="Bibo">Hobbit</dst>
<str dst="Gandalph">Wizard</dst>
</dict>
<dict dst="species" let:Bilbo="Hobbit" let:Gandalph="Wizard" />
<echo>Bilbo is a ${species['Bilbo']}</echo>
attributes
name |
purpose |
type |
required? |
default |
choices |
default |
Default return for missing keys |
expression |
No |
None |
|
sequence |
Optional sequence of key / value pairs to initialize the dict |
expression |
No |
None |
|
inherited attributes
name |
purpose |
type |
required? |
default |
choices |
dst |
Destination |
reference |
No |
|
|
if |
Conditional expression |
expression |
No |
yes |
|
value |
Value |
expression |
No |
None |
|