SUIT Framework

Scripting Using Integrated Templates

Docs - assign

12/27/2015: SUIT Framework is no longer actively maintained.

Available Since: Rulebox (1.0.0)

Assign variable in the template.

Syntax [assign ( var="str" json="bool" )]value[/assign]
Parameters
value

The value to assign to the variable.

var

The name of the variable to set. (Default: null. Nothing will be set.)

json

Whether or not the value should be JSON decoded. (Default: false)

Static Variables
decode

The variables to be JSON decoded. (Default: ["json"])

delimiter

The string that separates the levels of the variable. (Default: ".")

owner

The object to set the variable on. (Default: templating.var)

Output

Nothing. It assigns the variable and collapses.

Config Notes
See Also