OpenWGA 7.6 - OpenWGA Concepts and Features

Design and development » WebTML » Features » Scriptlets

Scriptlet level 2

Scriptlet level 2 contains all functionality of  level 1 plus the ability to run arbitrary TMLScript code.

As TMLScript code has the ability to workaround all security barriers (for example via master functions) enabling scriptlet level 2 may be a major security risk! It should only be enabled if the potential authors of the text to process may have complete control and access over the OpenWGA platform.

The resolving of scriplets of this level is only activated when putting out text via tag <tml:item> with attribute scriptlets set to "true".

The following syntaxes are available:

{@= TMLScript expression @}

Execution of a custom TMLScript expression and embedding its result into the text.

{@ TMLScript code @}

Execution of custom TMLScript code, including control statements. If a result is returned via "return" statement it is embedded to the text.