TagMaster 2.0 Manual  (Table of Contents)
  Chapter 2 , Section 1    
1.4 Wide and short tags (Previous)
 

  There are two types of tags in html files that TagMaster can work with: wide tags and short tags.

Wide tags, which are composed of both a start tag and an end tag, may have text within them. Wide tags are usually made up of html comments that may be used to pull out segments of text within the html, or replace entire segments within the file. Wide tags are useful when:

  1. A default text string located in the base html should appear if there isn't a reason (and therefore, command in the Build file) to replace it;
  2. A string of text may need to be changed dynamically or used repeatedly; or
  3. The tags in the base html file should remain invisible (by being contained in html comments).


Examples of wide tags (these are the default tag layouts):

<html>
<!--tag "TAGNAME"-->
The text within the tag TAGNAME
<!--/tag "TAGNAME"-->
</html>

or

<html>
<!--tag "FORM BODY"--> <!--tag "TABLE BODY"-->
... <!-- text or tags involving the table -->
<!--/tag "TABLE BODY"-->
... <!-- text or tags involving the form, but not the table -->
<!--/tag "FORM BODY"-->
</html>




Short tags are composed of only one tag. Short tags are especially useful in senarios where a certain value must be replaced before a result html file is complete. They may also be inserted into html using a standard graphics-based web page creation program without creating and placing html comments (as with wide tags).

Example of a short tag (this is the default tag layout):

This website has been on the web for % % TAGNAME % % days.

Using the example given in the previous subsection as a base, (see 1.3, "Inserting tags in comments" ) the following example uses short tags along with wide tags to make template creation and management easier.


<!--tag "event table"-->
<TABLE>
<!--tag "new table row"-->
<TR><TD>
% % row contents % %
</TD></TR>
<!--/tag "new table row"-->
</TABLE>
<!--/tag "event table"-->


The text "% % row contents % %" in the above example works just like the wide tags, except that it does not require a start and end tag and has no contents. The "new table row" and "event table" tags will be used for their contents in the end Build file, and the "row contents" tag will be replaced.

 

© Copyright 1997-1999 Dataczar Technologies. All rights reserved.