OpenResty::RestyScript - Perl wrapper for the restyscript compiler via IPC
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.
$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.
$type
$src
$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
$old_var_name
new_var_name
($frags, $stats) = $obj->compile()
Agent Zhang (agentzh) <agentzh@yahoo.cn>
<agentzh@yahoo.cn>
Copyright (c) 2007, 2008 by Yahoo! China EEEE Works, Alibaba Inc.
This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0. A copy of this license can be obtained from
http://opensource.org/licenses/artistic-license-2.0.php
To install OpenResty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenResty
CPAN shell
perl -MCPAN -e shell install OpenResty
For more information on module installation, please visit the detailed CPAN module installation guide.