
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.
$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()
Agent Zhang (agentzh) <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