diner - THE HTTP-server for the BeOS
Contents

diner ]
Introduction ]
What's new? ]
Installation ]
Configuration ]
Usage ]
Licence ]
Contact ]
Thanks ]
Features ]
Availability ]
Environment ]
InlineModuleInvocation ]
Restrictions ]
Known bugs and problems ]
Future ]
History ]

InlineModuleInvocation

The InlineModuleInvocation system is based on a parser that preprocesses the requested file. In this file, you can specify three new tags to call internal modules that insert special information into the file, replacing the custom tags:


<Block [BlockName] [Argument1 Argument2 ...]>
</Block>

<Var [VariableName]>


"<Block [BlockName] [Argument1 Argument2 ...]>" starts a new block where "BlockName" is the name of the module that will handle that block. Some blocks may use the additional arguments, some don't.

"</Block>" ends the current block. Inside a block you can have normal HTML mixed with other blocks. Inside these blocks you can have as much variables defined with "<Var [VariableName]>" as you like.

At the end of a block, an internal module is called which replaces all the variables with their values. If a module with the given name does not exist, the whole block is stripped from the generated page. If a variable does not exist, it depends on the called module wether it is just stripped or replaced by a warning. Some modules may not only replace the variables, but also repeat the block contents multiple times.

Please have a look at the templates now to get an idea how the templates work.

The current version of diner ships with the following build in modules:

CGIFills in variables given as CGI-parameters.
IncludeIncludes other files.
ListList's a given directory with attributes.
QueryPerforms a query with attributes.
Copyright © 1997-99 Stegemann & Co., Inc., all rights reserved.
Created: November 29, 1997. Last modified: April 30, 1999.