Mahiro Ando > EJS-Template > EJS::Template::Executor

Download:
EJS-Template-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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.

SEE ALSO ^

syntax highlighting: