OpenResty::RestyScript - Perl wrapper for the restyscript compiler via IPC


OpenResty documentation  | view source Contained in the OpenResty distribution.

Index


NAME

Top

OpenResty::RestyScript - Perl wrapper for the restyscript compiler via IPC

NAME

Top

The restyscript compiler is written in Haskell and located at haskell/bin/restyscript. This is a Perl wrapper for interact with it via IPC::Run3.

METHODS

Top

$obj = OpenResty::RestyScript->new($type, $src)

Create a new OpenResty::RestyScript instance with the $type parameter indicating "view" or "action" and the $src parameter indicating the RestyScript source code.

$new_src = $obj->rename($old_var_name, $new_var_name)

Renames the variable specified by $old_var_name with the new name specified by $new_var_name, and returns the new source. R

($frags, $stats) = $obj->compile()

AUTHOR

Top

Agent Zhang (agentzh) <agentzh@yahoo.cn>

COPYRIGHT AND LICENSE

Top


OpenResty documentation  | view source Contained in the OpenResty distribution.