The settings are stored in the config.xml file (which must be in the same directory as Here's an example of settings file:

<?xml version="1.0" encoding="UTF-8"?>
<anticms_config version="0.1">
  <config host=".*">
    <item name="debug" value="false" type="bool" />
    <item name="print_gen_time" value="true" type="bool" />

    <item name="content_file" value="data/content.xml" type="str" />
    <item name="template_file" value="data/template.html" type="str" />
    <item name="code_dir" value="code" type="str" />
    <item name="data_dir" value="data" type="str" />

    <item name="input_encoding" value="ISO-8859-13" type="str" />
    <item name="output_encoding" value="UTF-8" type="str" />

    <item name="addr_suffix" value=".html" type="str" />
    <item name="addr_prefix" value="/" type="str" />
    <item name="addr_separator" value="/" type="str" />
    <item name="cont_separator" value="-" tyle="str" />

anticms_config element

This is the top level element. The only attribute it has is version, which yields the version of format.

config element

These elements contain settings information for each host. The attribute host contains regular expression that has to match server name. I. e. you can have several sites served from a single installation (if server name matches more than one expression, the first one is used; if a match isn't foud, an error is generated).

item element

These elements are used to store the settings. Attributes:

name type value
debug bool turns (on|off) verbose python error messages (cgitb module).
print_gen_time bool whether to print the time that the document was generated in (as a comment at the bottom of the document).
content_file str the content file (must specify path relative to the one with
template_file str the template file (must specify path relative to the one with
code_dir str directory that contains program modules (must specify path relative to the one with
data_dir str direcorty that contains files included in the content (must specify path relative to the one with
input_encoding str the encoding used in template file and files included in the content.
output_encoding str the output encoding (this encoding is also printed in HTTP header).
addr_suffix str suffix, attached to links.
addr_prefix str preffix, attached to links.
addr_separator str separator used to separate page names in links.
cont_separator str separator used to separate page names in content file.