++ed by:

1 non-PAUSE user.

Михаил Че

Доброго всем

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,@_)