Viper

(Not Related to a Specific Release) - ...

A viper is defined as a vipermethod call enclosed by curly brackets.

For example, the viper below will be resolved to 'HELLO' when the SXML is executed during page rendering.

Smartsite SXML CopyCode image Copy Code
{string.toupper('hello')} => HELLO

Vipers are executable elements; their content will be resolved during de rendering of the page.

Smartsite SXML CopyCode image Copy Code
{string.toupper(string.trim('  hello world  '))} => HELLO WORLD