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