|
< block syntax>
< blockdef name="tagname" [option="option1 [option2 ...]"] [global] [expand]>
... < use block> ...
< /blockdef>
< /block>
< block synopsis>
<strong>BLOCKDEF</strong> creates block <A
HREF="metatag.html">metatags</A>, which is a fancy way of saying it
creates new block tags. A block tag is a tag that takes a whole block
as additional parameter. This block is surrounded by <tagname> and
</tagname>. The contents of this block are automatically stored
in the block macro named BLOCK.
<P> For example:</P>
<htpcode>
< blockdef name="section" option="title">
<h1>< use title></h1>
<p class="section">
< use block>
</p>
< /blockdef>
<section title="My Section">
This is a fancy section.
</section>
</htpcode>
<p>
All block metatags have the implicit option <a
href="expand.html">EXPAND</A>, which tells htp to expand the contents
of the block before the definition is expanded.
</p>
<p>
A more thorough discussion and more elaborate examples are discussed in the
<a href="metatag.html">metatag</a> section.
</p>
< /block>
|