SUIT Framework

Scripting Using Integrated Templates

Docs - c

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

Available Since: Rulebox (1.0.0)

Grab a variable from tmpl_context.

Syntax [c ( entities="bool" json="bool" )]var[/c]
Parameters
var

The name of the variable to grab.

entities

Whether or not the output should have the HTML entities transformed. (Default: true)

json

Whether or not the variable should be JSON encoded. (Default: false)

Static Variables
decode

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

delimiter

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

owner

The object to grab the variable from. (Default: pylons.tmpl_context)

Output

The variable.

Config Notes
See Also