SecureHandlers


 * ''These templates are defined in  and

SecureHandlers (created by inheriting SecureHandlerBaseTemplate) enable the use of code snippets inside the RestrictedEnvironment. Each snippet is a that behaves like the body of a Lua function, but it can only contain a subset of the World of Warcraft API.

Defined methods
All SecureHandlers have four common methods defined by SecureHandlerBaseTemplate:
 * - Executes a code snippet in the widget's restricted environment.
 * - Wraps a widget script with code snippets to execute in the restricted environment.
 * - Strips (and returns) the outermost-wrapped handler for the frame's script handler.
 * - Creates a frame reference that can be accessed inside the restricted environment.

Details

 * The base template has an OnLoad widget script which adds the four defined methods.
 * All other secure handlers, listed in the table below, add another widget script that will execute a code snippet defined using