Finally, the template processor will produce the resulting file tree from the template. Different kinds of files will be processed as follows:

Verbatim file copies

A file for which no specific substitution templates are specified will be copied verbatim.

Processed file content

A file for which at least one specific substitution template is specified will be processed for both global substitution templates and specific substitution templates.

A file of the name filename.py can be used to generate the file filename. To do so, it must begin with

                      # template file

                    

When the script generates the content, it supplies it to the template processor via the template.submit_content(content) or template.append_content(content) commands (see the template object reference).