HTML::Merge::Ext

HTML::Merge::Ext - Extending Merge by writing your own tags.
Download

HTML::Merge::Ext Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Raz Information Systems Ltd.
  • Publisher web site:
  • http://search.cpan.org/~razinf/HTML-Merge-3.52/lib/HTML/Merge.pm

HTML::Merge::Ext Tags


HTML::Merge::Ext Description

HTML::Merge::Ext - Extending Merge by writing your own tags. HTML::Merge::Ext - Extending Merge by writing your own tags.TYPES OF TAGSGenerally, there are four types of tags in Merge.Output tagsTags such as < $RVAR > or others, that are substituted by values that appear in the output. For example: < $RVAR.x > is substituted by the value of the vairable x.Non block tagsTags that perform an action, and have no corresponding closing tags. For example: < $RSET.x='8' > sets the value 8 into the variable x.Opening block tagsTags that usually handle the flow of the template. These tags, together with the closing tags, encapsulate a block of HTML and tags between them. The data inside the block will be treated as regular output statements. If you wish to capture it for a different use, a capturing mechanism (for example, using the Perl select() statement) needs to be used. For example, < $RITERATION.LIMIT=4 > .. < /$RITERATION > will print everything inside the block 4 times.Closing block tagsThe tags that close blocks beginning in the opening tags. The tags < $REND >, < $REND_IF > and < $REND_WHILE > are privilleged as closing tags. Other closing tags use the SGML like notation of specifying a slash before the name of the tag, for example: < /$RCOUNT > is the closing tag for < $RCOUNT >


HTML::Merge::Ext Related Software