| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: LOAD-MODULE

Section: Dynamic Modules

Synopsis:

`<load-module MODULE-NAME>`

Description:

Loads a module dynamically at runtime, adding the function definitions found therein to the global package of Meta-HTML functions.

`load-module` returns the string `"true"` if the module is loaded successfully, or places an error in `system-error-output` if not.

MODULE-NAME is searched for by looking in each directory specified in the array `mhtml::module-directories`, or by loading the module as if the name specified is the full pathname to that file.

Once a module is loaded, the functions within it can be invoked just as with any standard Meta-HTML command.

See the `examples.c` file in the `modules` directory of your distribution for more information on writing Meta-HTML modules.

Example:

    <set-var loaded? = <load-module /www/lib/example.so>>

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com