code: def output(self, mode='file', forced=False, context=None):
      
      output = '\n'.join(self.filter_input(forced, context=context))
  
      if not output:
          return ''
  
      if settings.COMPRESS_ENABLED or forced:
          filtered_output = self.filter_output(output)
          return self.handle_output(mode, filtered_output, forced)
  
      return output
docs: The general output method, override in subclass if you need to do
      any custom modification. Calls other mode specific methods or simply
      returns the content directly.