def join_template_name(self, template_name, extension):
if template_name is None:<EOL><INDENT>return None<EOL><DEDENT>if isinstance(template_name, (list, tuple)):<EOL><INDENT>return tuple('<STR_LIT:.>'.join([n, extension]) for n in template_name)<EOL><DEDENT>if isinstance(template_name, str_types):<EOL><INDENT>return '<STR_LIT:.>'.join([template_name, extension])<EOL><DEDENT>raise AssertionError('<STR_LIT>' % type(template_name))<EOL>
Appends an extension to a template_name or list of template_names.