OpenResty::Handler::CompiledView - Handler for pre-compiled views
It loads compiled.views file from etc/ or /etc/openresty/ (in such an order).
A sample compiled.views looks like this:
use OpenResty::QuasiQuote::SQL; { 'yquestion|getquery' => [ { _user => 'yquestion.Public' }, sub { my ($openresty, $vars) = @_; #$resty->set_use my $query = $vars->{spell}; return [:sql|select * from getquery($query) as (query text, pop integer, des text) limit 10 |]; } ], }
Agent Zhang (agentzh) <agentzh@yahoo.cn>
<agentzh@yahoo.cn>
OpenResty::Handler::View, OpenResty::Handler::Role, OpenResty::Handler::Action, OpenResty::Handler::Feed, OpenResty::Handler::Version, OpenResty::Handler::Captcha, OpenResty::Handler::Login, OpenResty.
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.