'Return the buffer contents of the frame.'

def return_buffer_contents(self, frame):

    if self.environment.autoescape:
        self.writeline(('return    Markup(concat(%s))' % frame.buffer))
    else:
        self.writeline(('return    concat(%s)' % frame.buffer))
