HTML::Template::Pro::Extension

HTML::Template::Pro::Extension package contains extension modules for HTML::Template::Pro.
Download

HTML::Template::Pro::Extension Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Bruni Emiliano
  • Publisher web site:
  • http://search.cpan.org/~ebruni/HTML-Template-Pro-Extension-0.09/Extension.pod

HTML::Template::Pro::Extension Tags


HTML::Template::Pro::Extension Description

HTML::Template::Pro::Extension package contains extension modules for HTML::Template::Pro. HTML::Template::Pro::Extension package contains extension modules for HTML::Template::Pro.SYNOPSIS use HTML::Template::Pro::Extension; my $text = qq | Standard module emulation ========================= If all is ok you can read this here --> < TMPL_VAR NAME="test" > |; my $comp = new HTML::Template::Pro::Extension( file => $text, plugins=>, ); $comp->param('test' => "It works!!!"); print $comp->output; # OUTPUT: # # Standard module emulation # ========================= # If all is ok you can read this here --> It works!!! my $text = qq | SLASH_VAR plugin activation =========================== Look to see if SLASH_VAR plugin is active --> < TMPL_VAR NAME="test" >NO< /TMPL_VAR > |; $comp->plugin_add("SLASH_VAR"); $comp->file($text); $comp->param('test' => "YES"); print $comp->output; # OUTPUT: # # SLASH_VAR plugin activation # =========================== # Look to see if SLASH_VAR plugin is active --> YES my $text = qq | < HTML >< BODY > HEAD_BODY plugin activation with autoDeleteHeader enabled ========================================================= Look to see if SLASH_VAR plugin is active --> < TMPL_VAR NAME="test" >NO< /TMPL_VAR > If you don't see HTML and BODY tags then HEAD_BODY plugin is active. < /BODY > < /HTML > |; $comp->plugin_add("HEAD_BODY"); $comp->file($text); $comp->autoDeleteHeader(1); print $comp->output; print "and the header is..." . $comp->header. "n"; # OUTPUT: # # HEAD_BODY plugin activation with autoDeleteHeader enabled # ========================================================= # Look to see if SLASH_VAR plugin is active --> YES # If you don't see HTML and BODY tags then HEAD_BODY plugin is active. # and the header is... # < HTML >< BODY > my $text = qq | DOC plugin activation ===================== Look to see if SLASH_VAR plugin is active --> < TMPL_VAR NAME="test" >NO< /TMPL_VAR > Look to see if DOC plugin is active --> < TMPL_DOC >DOC plugin is NOT active< /TMPL_DOC > |; $comp->autoDeleteHeader(0); $comp->file($text); $comp->plugin_add("DOC"); print $comp->output; # OUTPUT: # # DOC plugin activation # ===================== # Look to see if SLASH_VAR plugin is active --> YES # Look to see if DOC plugin is active --> print qq | CSTART plugin activation ======================== |; my $text = qq | Look to see if SLASH_VAR plugin is active --> < TMPL_VAR NAME="test" >NO< /TMPL_VAR > Look to see if DOC plugin is active --> < TMPL_DOC >DOC plugin is NOT active< /TMPL_DOC > < TMPL_CSTART > If you see ONLY this line then CSTART plugin is active.< /TMPL_CSTART > |; $comp->plugin_add("CSTART"); $comp->file($text); print $comp->output . "n"; # OUTPUT: # # CSTART plugin activation # ======================== # If you see ONLY this line then CSTART plugin is active. print qq | IF_TERN plugin activation ========================= |; my $text = qq | If all is ok you can read this here --> %test?It works!!!:It's BAD% |; $comp->plugin_add("IF_TERN"); $comp->file($text); $comp->param('test' => 1); print $comp->output . "n"; # OUTPUT: # # IF_TERN plugin activation # ========================= # If all is ok you can read this here --> It works!!! Requirements: · Perl


HTML::Template::Pro::Extension Related Software