HTML::Merge::Ext - Extending Merge by writing your own tags.
TYPES OF TAGS
Generally, there are four types of tags in Merge.
Tags 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 tags
Tags 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 tags
Tags 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 tags
The 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 >