def METHOD_NAME(self, data):
    if isinstance(data, GeneratorType):
        data = [i for i in data]
    return self.templatepage('Atom', data = data,
                            config = self.config,
                            path = request.path_info)