syntax
< set time="0">
< block name=a>
a is expanded at time < use time>.
< /block>
< block name=b expand>
b is expanded at time < use time>.
< /block>
< set time="1">
< use a>
< use b>
contents of a: < use a noexpand>
contents of b: < use b noexpand>
< block name=c expand>
c is expanded at time < use time>; < use a>
< /block>
< block name=d expand>
d is expanded at time < use time>; < use a noexpand>
< /block>
< block name=e>
e is expanded at time < use time>; < use a noexpand>
< /block>
< set time="2">
< block name=a>
a is defined for the 2nd time < use time>.
< /block>
< use c>
< use d>
< use e>
synopsis
This is a simple comment that is not included in the output. This is useful
when commenting metatags, since the metatags do not appear the output either.
Example:
< IF name="Jim">...< /IF>
Note that these comments should not include < or >, that is you
should not use it to comment out htp code. For that purpose use something
like this:
< DEF NAME="HEADERIMG" OPTION="SRC TITLE SIZE">
< IF size>
<FONT SIZE=${size}>
< /IF>
< IMG SRC=pics/${src}>
< USE title>
< IF size>
</FONT>
< /IF>
< /DEF>
<HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">
<HEADERIMG SRC="logo.gif" TITLE="Normal sized title">
This will fail:
<HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">
Instead, use * like this:
< DEF NAME="MYIMG" OPTION="SRC *">
< IMG SRC="pics/${src}" $*>
< /DEF>
<MYIMG SRC="logo.gif" ALT="Our logo">
Make sure that the variable is never defined and xyz should be the
reason why you don't want to include this block
|