This version of Zot-Dispatch allows Macro Variables to be set only in the configuration file. An example of setting a Macro Variable is (a more detailed description of setting Macro Variables can be found in the configuration file document):
<macro test-macro-1>
ZD-Method = "ZD-Reflect;;$template#"
template = "body:This is the template body."
</macro>
Here, the symbolic name "test-macro-1" is associated with the two name=value
pairs listed. An example of using this Macro Variable might be:
<A HREF="http://www.oac.uci.edu/cgi-bin/zd-2.0.cgi/test-macro-1"> Test Macro</A>Go ahead and try it out: http://www.oac.uci.edu/cgi-bin/zd-2.0.cgi/test-macro-1
It could also be used directly in a <FORM> tag, as follows:
<FORM METHOD=POST
ACTION="http://www.oac.uci.edu/cgi-bin/zd-2.0.cgi/test-macro-1">
<INPUT TYPE=text NAME="value1">
<INPUT TYPE=submit>
</FORM>
As stated previously, all name=value pairs that are loaded from the Macro
Variable are done so prior to the loading of those directly from the form
itself. This allows the values from the form to override those from the
Macro Variable.
lmegliol@uci.edu)