After the startup script has been executed, the template processor will perform a top-down traversal of the template tree. By default, it will record the names of all directories and files located in the tree, which will then be copied / processed in the next phase.
To customize what information is to be copied, and to specify additional customization possibilites (e.g., via substitution templates), template scripts may be inserted in the template tree.
Template scripts are python files which begin with the following text on their first line:
# template script
Every script found during the transversal will be executed. The script can interact with the template processor through the template object.