Sometimes it is nice to add some text to the template that should be ignored when the template gets evaluated. In larger projects the web design is done by a different company or at least a different person than the programming. The layout is done with some HTML editor or coded by hand and the parts where dynamic content will appear, is filled with some dummy text. If you get such HTML pages and want to convert them into Projector templates you can simply skip these parts by adding tags that define the start and the end of this dummy text block.
If you get the following page and need to convert it into a Projector template…
<HTML> <BODY> <P>This is the text that will be replaced with dynamic content</P> </BODY> </HTML>
…you can simply mark the dummy text with ignore tags:
<HTML> <BODY> <!--*** Start ignore ***--> <P>This is the text that will be replaced with dynamic content</P> <!--*** End ignore ***--> <%text%> </BODY> </HTML>
Even if the same visual result could be achieved by using HTML comments, this would have two disadvantages:
The resulting page source is bloated up with all of the dummy text that should not be of interest for the users
If the dummy block already contains some comments you’ll run into trouble as it is illegal to create nested comments.