HTP

htp on-line reference : UNSET

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]def name="sharedimg" option="name alt">
    <[ref]img src="/home/sharedimages/${name}" alt="${alt}">;
  <[ref]/def>

  <sharedimg name="bubble.gif" alt="Bubble image">
    </FONT>
    <[ref]/IF>
  <[ref]/DEF>

  <HEADERIMG SRC="logo.gif" SIZE="+2" TITLE="A title">

  <HEADERIMG SRC="logo.gif" TITLE="Normal sized title">

  This will fail:
  <HEADERIMG SRC="logo.gif" ALT="Our logo" TITLE="Another title">

  Instead, use * like this:
  <[ref]DEF NAME="MYIMG" OPTION="SRC *">
    <[ref]IMG SRC="pics/${src}" $*>
  <[ref]/DEF>
   
  <MYIMG SRC="logo.gif" ALT="Our logo">

synopsis

UNSET removes (or deletes) a macro and it's definition. The macro is subsequently not available for use in the pre-processed files. (Note that simply redefining the macro with another SET or BLOCK definition with the same name is acceptable. The old macro definition will be removed automatically.)

For example:

More than one macro may be removed in the same tag:

  page source
  htp project
  htp homepage
hosted by
Sourceforge
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–2014 Jochen Hoenicke.
Permission to reproduce and distribute this hypertext document granted according to terms described in the License section.

last updated Sat May 16, 2015