The Gween Concept

To start Gween index.php creates Parser-Object and calls start(). The parser object takes care of the compilation and execution of the components. This happens in following order:

/autohandler.comp
|   |
|   |
|   /subdir/autohandler.comp
|   |   |
|   |   |
|   |   /subdir/subdir/...
|   |
|   /subdir/component2.comp
|
|
/component1.comp

In each subdir can be an autohandler, it is executed before a component is loaded or another subdir is loaded.

Methods

To make the autohandlers more dynamic, methods of the components can be called by the autohandlers.
// AUTOHANDLER //

<html>
<head>
<title><& $p->self->callMethod('title') &></title>
</head>
<body>
<& $p->callNext() &>
</body>
</html>


// COMPONENT (only method definition) //

<%method name="title">
Title-Content
</%method>




Last modified: Mon Nov 11 22:37:46 CET 2002