[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are several methods for supplying data values for templates.
--override-tpl
and --no-definitions
options on the command line. See section 5. Invoking autogen.
REQUEST_METHOD
is defined
and set to either "GET" or "POST", See section 6.2 AutoGen as a CGI server. Obviously,
all the values are constrained to strings because there is no way
to represent nested values.
xml2ag
. Its output can
either be redirected to a file for later use, or the program can
be used as an AutoGen wrapper. See section 8.6 Invoking xml2ag.
The introductory template example (see section 1.2 A Simple Example) can be rewritten in XML as follows:
<EXAMPLE template="list.tpl"> <LIST list_element="alpha" list_info="some alpha stuff"/> <LIST list_info="more beta stuff" list_element="beta"/> <LIST list_element="omega" list_info="final omega stuff"/> </EXAMPLE> |
A more XML-normal form might look like this:
<EXAMPLE template="list.tpl"> <LIST list_element="alpha">some alpha stuff</LIST> <LIST list_element="beta" >more beta stuff</LIST> <LIST list_element="omega">final omega stuff</LIST> </EXAMPLE> |
list_info
references
into text
references.