-
-
22 Oct 2020 05:02:16 UTC
- Distribution: Mojolicious-Plugin-RenderCGI
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (144 / 0 / 0)
- Kwalitee
Bus factor: 1- 70.05% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (6.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE user- Dependencies
- CGI
- Mojolicious
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Доброго всем
Mojolicious::Plugin::RenderCGI::Template
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
NAME
Mojolicious::Plugin::RenderCGI::Template - Package for cgi-handle templates. Normally internal only using from plugin.
SYNOPSIS
$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;
ATRIBUTES (has)
All atributes has hidden names because you can generate any tags.
_plugin
_import
_content
METHODS
All methods has hidden names because you can generate any tags.
new
Each template is a seperate object.
_compile
Compile template content and store coderef inside atribute _content and return error string if compile fails overwise self object.
_run
Simply execute compiled template coderef:
$template->_content->($template, $c, $CGI);
AUTOLOAD
Will generate any tag trought CGI::_tag_func($tag,@_)
Module Install Instructions
To install Mojolicious::Plugin::RenderCGI, copy and paste the appropriate command in to your terminal.
cpanm Mojolicious::Plugin::RenderCGI
perl -MCPAN -e shell install Mojolicious::Plugin::RenderCGI
For more information on module installation, please visit the detailed CPAN module installation guide.