hi all,
here's the syntax I'm going to use to be processed by the make system for
static module embeds:
<!-- xml module definition -->
<bc:module id="moo" name="HelloWorld" package="hello_world">
<cache expires="30" use_uri="true" var="$moo"/>
<params>
<param_name>value</param_name>
<another_param_name>another_value</another_param_name>
</params>
</bc:module>
<!-- after a make: -->
<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' =>
'hello_world','id' => 'moo','cache' =>
array('expires'=>'30','use_uri'=>true,'var'=>'$moo'),'params' =>
array('param_name' => 'value','another_param_name' => 'another_value'))); ?>
the php is all one line.
as you can see, this will make embedding modules in markup a _snap_. if you
use xhtml in your documents you can validate module definitions within an
xml tree without a problem.
best,
_alex
|