def write_out(self, output):
if not output:<EOL><INDENT>return<EOL><DEDENT>ext = self.extensions.get(self.tree.root.extension_name)<EOL>self.tree.write_out(output)<EOL>self.write_extra_assets(output)<EOL>ext.formatter.copy_assets(os.path.join(output, '<STR_LIT:html>', '<STR_LIT>'))<EOL>ext_folder = ext.formatter.get_output_folder(self.tree.root)<EOL>ref, _ = self.tree.root.link.get_link(self.app.link_resolver)<EOL>index_path = os.path.join(ext_folder, ref)<EOL>default_index_path = os.path.join(output, '<STR_LIT:html>', '<STR_LIT>')<EOL>if not os.path.exists(default_index_path):<EOL><INDENT>with open(default_index_path, '<STR_LIT:w>', encoding='<STR_LIT:utf8>') as _:<EOL><INDENT>_.write('<STR_LIT>' %<EOL>index_path)<EOL><DEDENT><DEDENT>self.written_out_signal(self)<EOL>
Banana banana