htp on-line reference : BLOCKDEF, /BLOCKDEF

table of contents
  Introduction
  Usage
  Files
  Concepts
  HTP Tags
   ALTTEXT
   BLOCK
   BLOCKDEF
   DEF
   FILE
   IF
   INC
   IMG
   OPT
   OUTPUT
   QUOTE
   SET
   UNDEF
   UNSET
   USE, $
   WHILE
   <!---
  History
  Wish list
  Bugs

syntax

<BLOCKDEF NAME="tagname" [OPTION="option1 [option2 ...]"] [GLOBAL] [EXPAND]>
</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:

  <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>

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

htp project

htp homepage

hosted by
SourceForge.net Logo

htp on-line reference / http://htp.sourceforge.net/ref/
Authors: Jim Nelson, Jochen Hoenicke, Michael Möller.
Maintainers: Jochen Hoenicke, Michael Möller.

Copyright © 1995-96 Jim Nelson.
Copyright © 2001-2002 Jochen Hoenicke, Michael Möller.
Permission to reproduce and distribute this hypertext document granted according to terms described in the Introduction

last updated Mon May 27, 2002