'The output method that saves the content to a file and renders
the appropriate template with the file\'s URL.'

def output_file(self, mode, content, forced=False, basename=None):

    new_filepath = self.get_filepath(content, basename=basename)
    if ((not self.storage.exists(new_filepath)) or forced):
        self.storage.save(new_filepath, ContentFile(content.encode(self.charset)))
    url = mark_safe(self.storage.url(new_filepath))
    context = {u'url': url, u'sri': _compute_sri_value(content)}
    return self.render_output(mode, context)
