... [% IF var = 'what I want' %] [% INCLUDE 'this_file.tmpl' %] [% ELSE %] [% FOREACH x = myarray %] [% INCLUDE x %] [% END %] [% END %] ...