A document is an XML tree, defined in a file matched by the regular expressions given in the configuration file. It has one of the following forms. First form:

Here is the body of the document. ]]>

Second form, almost the same, except that with-contents="true" indicates that more attributes are given in subnodes, and the body is in the contents subnode:

value2 ... Here is the body of the document. ]]>

type can be any string (like "post", "page", ...) and defines the type of the document. This allows different treatments according to the document type.

You can specify any attribute for a document. Some attributes are used internally:

Any other attribute will be available by its name in the environment when processing the template associated to the document type. The document type can be accessed with <doc-type/>. More details in .

To generate the file corresponding to a document, stog will use the type of the document (for example "post") to load the associated template (for example "post.tmpl" in the templates directory).

You can have a look at the source of the pages of this site at the bottom of each page. The sources of this site can be a good starting point. You can browse it in the doc directory of the distribution.