HTP

htp on-line reference : BLOCKDEF, /BLOCKDEF

Table of Contents
  Introduction
  License
  Tutorial
  Usage
  HTP Tags
    ALTTEXT
    BLOCK
  > BLOCKDEF
    DEF
    FILE
    IF
    INC
    IMG
    IMAGEURL
    OPT
    OUTPUT
    QUOTE
    SET
    UNDEF
    UNSET
    USE, $
    WHILE
    <!---
  History
  Wish list
  Bugs

syntax

<[ref]BLOCKDEF NAME="tagname" [OPTION="option1 [option2 ...]" ] [GLOBAL] [EXPAND]>
<[ref]/BLOCKDEF>

synopsis

BLOCKDEF creates block metatags, which is a fancy way of saying it creates new block tags. A block tag is a tag that takes a whole block as implicit parameter. This block is surounded by the start and end tag. The contents of this block are automatically stored in the block macro named BLOCK.

For example:

  <[ref]BLOCKDEF NAME="SECTION" OPTION="TITLE">
   <h1><[ref]USE TITLE></h1>
   <P class="section">
     <[ref]USE BLOCK>
   </P>
  <[ref]/BLOCKDEF>

  <SECTION TITLE="My Section">
    This is a fancy section.
  </SECTION>

A more thorough discussion and more elaborate examples are discussed in the metatag section.

  page source
  htp project
  htp homepage
hosted by
SourceForge.net
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 Fri Sep 05, 2003