NAME
EJS::Template::IO - Normalizes input/output parameters for EJS::Template
Methods
input
Normalizes input.
EJS::Template::IO->input('filepath.ejs');
EJS::Template::IO->input(\$source_text);
EJS::Template::IO->input($input_handle);
EJS::Template::IO->input(\*STDIN);
It returns a list in the form ($input, $should_close)
, where $input
is the normalized input handle and $should_close
indicates the file handle has been opened and your code is responsible for closing it.
output
Normalizes output.
EJS::Template::IO->output('filepath.out');
EJS::Template::IO->output(\$result_text);
EJS::Template::IO->output($output_handle);
EJS::Template::IO->output(\*STDOUT);
It returns a list in the form ($output, $should_close)
, where $output
is the normalized output handle and $should_close
indicates the file handle has been opened and your code is responsible for closing it.