THE META-HTML LANGUAGE REFERENCE MANUAL

[TOC]

Manual Page Viewer

Name: DEFINE-CONTAINER

Section: Macro Commands


Synopsis:

    <define-container NAME &optional [NAMED-PARAMETERS] &key [PACKAGE=PACKNAME] [WHITESPACE=DELETE]
      body
    </define-container>

Description:

    Define NAME as a complex tag. At invocation time, various substitutions are made within BODY. Specifically, if the text string is:

    • %0,%1, and so on, upto %9 are replaced with the exact text of the positional arguments that were found in the opening tag of the invocation

    • %attributes is replaced by all of the arguments which appeared in the opening tag.

    • %body is replaced with the exact text of the material that appeared between the opening and closing tags

    • %qbody is similar to %body, but the string is first surrounded by double quotes, and double quote characters which appear in the string are escaped.

    • %xbody is replaced with the evaluation of the material that appeared between the opening and closing tags

    If any NAMED-PARAMETERs are supplied, the values that were passed in the opening tag are evaluated and bound to the named parameters.

    A keyword argument of PACKAGE-NAME wraps the entire body of the macro in an in-package statement.

    The keyword argument WHITESPACE can be set to the string delete to remove whitespace from the starts and ends of lines in the macro definition before it is stored. This effectively concatenates all of the lines of the macro definition into a single long line.

Edit Pointer
Function Index
Variable Index
Variable Editor


The META-HTML Reference Manual V2.0 Copyright © 1995, 1998, Brian J. Fox
Found a bug? Send mail to bug-manual@metahtml.org