HTP

Source code: ref/blockdef.htp

Table of Contents
  htp.def
  macros.def
  htp.htt


<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 &lt;tagname&gt; and
&lt;/tagname&gt;.  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>

  page source
  htp project
  htp homepage
hosted by
SourceForge.net
HTML coding Powered by htp
htp on-line reference / http://htp.sourceforge.net/ref/
Authors: Jim Nelson, Jochen Hoenicke, Michael Möller.
Maintainers: Jochen Hoenicke.

Copyright © 1995-96 Jim Nelson.
Copyright © 2001-2003 Jochen Hoenicke.
Permission to reproduce and distribute this hypertext document granted according to terms described in the License section.

last updated Tue Feb 22, 2011