Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::RenderCGI::Template - Package for cgi-handle templates. Normally internal only using from plugin.
$template = Mojolicious::Plugin::RenderCGI::Template->new(...); my $err = $template->_compile($content); unless (ref $err) {...} # compile error my @out = eval { $template->_run($c)}; if ($@) {...} # runtime error $$output = join "\n", grep defined, @out;
All atributes has hidden names because you can generate any tags.
All methods has hidden names because you can generate any tags.
Each template is a seperate object.
Compile template content and store coderef inside atribute _content and return error string if compile fails overwise self object.
Simply execute compiled template coderef:
$template->_content->($template, $c, $CGI);
Will generate any tag trought CGI::_tag_func($tag,@_)
To install Mojolicious::Plugin::RenderCGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::RenderCGI
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::RenderCGI
For more information on module installation, please visit the detailed CPAN module installation guide.