Text template structure

Here is the structure of a text template:

[#package packageName]

([#import importName])*

[#template visibility templateName(templateParameters)]
(body statement)*
[/#template]

Related concepts
Text template