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]use block> ...
<[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 additional parameter. This block is surrounded by <tagname> and </tagname>. 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>

All block metatags have the implicit option EXPAND, which tells htp to expand the contents of the block before the definition is expanded.

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

  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 Fri Aug 31, 2007