htp on-line reference : BLOCK, /BLOCK

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

<BLOCK NAME="blockname" [GLOBAL] [EXPAND]>
text block
</BLOCK>

synopsis

BLOCK and /BLOCK are used to create block macros, which are similar in use to SET macros, but can be multi-line definitions.

Any text and formatting may be set inside the block. You can use any htp or user defined metatag including FILE INCLUDE. The metatags won't be expanded before the block is USEd except if you give the EXPAND parameter.

The block macro is dereferenced (expanded) with the USE tag. Block macros cannot be dereferenced inside another tag using the '$' operator, however. See the notes on the USE tag on how to pass parameters to a block macro.

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