NAME
EJS::Template::Executor - Executes JavaScript generated by EJS::Template
Methods
execute
Executes JavaScript code.
$executor->execute($input, $variables, $output);
The $input
is used as the JavaScript source code, $variables
is a hash ref of variables for JavaScript, and $output
is the output destination
adapter
Usage:
# Getter
$executor->adapter;
# Setter
$executor->adapter(EJS::Template::JSAdapter->create('JE'));
Gets or sets an EJS::Template::JSAdapter
object.