def get_template_sources(self, template_name):
if '<STR_LIT::>' not in template_name:<EOL><INDENT>self.reset(True)<EOL>return<EOL><DEDENT>app, template_path = template_name.split('<STR_LIT::>')<EOL>if app:<EOL><INDENT>yield NamespaceOrigin(<EOL>app_name=app,<EOL>name='<STR_LIT>' % (app, template_name),<EOL>template_name=template_path,<EOL>loader=self)<EOL>return<EOL><DEDENT>self.reset(False)<EOL>for app in self.app_templates_dirs:<EOL><INDENT>file_path = self.get_app_template_path(app, template_path)<EOL>if file_path in self._already_used:<EOL><INDENT>continue<EOL><DEDENT>self._already_used.append(file_path)<EOL>yield NamespaceOrigin(<EOL>app_name=app,<EOL>name='<STR_LIT>' % (app, template_name),<EOL>template_name=template_path,<EOL>loader=self)<EOL><DEDENT>
Build a list of Origin to load 'template_name' splitted with ':'.
The first item is the name of the application and the last item
is the true value of 'template_name' provided by the specified
application.