Variables
| Function | Summary |
|---|---|
| append-block | Redirects the output from multiple blocks of template code to an array. |
| def | Declares (and defines) a variable. Warns if the variable already exists. |
| default | Deprecated. |
| let | Deprecated. |
| sequence | Creates a sequence that can be iterated. |
| set | Sets the value of a variable. |
| set-block | Redirects the output from a block of template code to a string. |
| undef | Destroys previously defined variable(s). |
In this section
- append-block This mechanism will silently process all template code which is encapsulated by "{append-block ...}" and "{/append-block}". It will not produce any actual output. Instead, the generated output will be assigned to a variable specified by the "variable" parameter (as an array). If the variable does no
- def This function allows the declaration and definition of a single variable or a group of variables. The "undef" function can be used to flush/destroy variables that were created using the "def" function. Please note that this function does not support the "name" and the "scope" parameters (like the ol
- default Exponential Documentation
- let Exponential Documentation
- sequence Exponential Documentation
- set-block This mechanism will silently process all template code which is encapsulated by "{set-block ...}" and "{/set-block}". It will not produce any actual output. Instead, the generated output will be assigned to a variable specified by the "variable" parameter (as a string). If the variable does not exis
- set This function makes it possible to assign new values to variables that previously have been declared using either the "def" function. The "name" and "scope" parameters are optional and can be used to set the desired namespace and scope.
- undef This function destroys variables that have previously been created using the "def" function. The names of the variables that should be destroyed can be provided as parameters. If no parameters are specified, the function will automatically get rid of all variables that were previously defined within
Contributors
- Balazs Halasy Updated
Comments
Add a comment