HTML::Template::Extension::DO_NOTHING.3pm

Langue: en

Version: 2007-01-16 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

HTML::Template::Extension::DO_NOTHING - Plugin that do nothing :-)

SYNOPSIS

  use HTML::Template::Extension;
 
 
  my $text = qq
     |
      Standard module emulation
      =========================
      If all is ok you can read this here --> <TMPL_VAR NAME="test">
 
 
     |;
 
 
  # This is equivalent to
  # my $comp       = new HTML::Template::Extension(
  #                                            scalarref => \$text
  #                        );
 
 
  my $comp       = new HTML::Template::Extension(
                                             scalarref => \$text,
                                             plugins=>["DO_NOTHING"],
                         );
 
 
  $comp->param('test' => "It works!!!");
  print $comp->output;
 
 
  #   OUTPUT:
  #
  #   Standard module emulation
  #   =========================
  #   If all is ok you can read this here --> It works!!!
 
 

DESCRIPTION

This plugin don't add anything to base class and loading it or not is the same.

It's here so that you can use it to build your own extension to HTM::Template dictionary.

If you develope something interesting, send me so that you can share your works with perl comunity.

AUTHOR

Bruni Emiliano, <info@ebruni.it>

SEE ALSO

  HTML::Template
  HTML::Template::Extension::DO_NOTHING
  HTML::Template::Extension::SLASH_VAR
  HTML::Template::Extension::CSTART
  HTML::Template::Extension::DOC
  HTML::Template::Extension::HEAD_BODY