An ST program can contain any number of templates that are defined with tt:template. All templates except the main template are subtemplates that can be called in the main template.
Defining Subtemplates
Calling Subtemplates