def write(self, album, media_group):

        file_path = os.path.join(album.dst_path, media_group[0].filename)

        page = self.template.render({
            'album': album,
            'media': media_group[0],
            'previous_media': media_group[-1],
            'next_media': media_group[1],
            'index_title': self.index_title,
            'settings': self.settings,
            'sigal_link': sigal_link,
            'theme': {'name': os.path.basename(self.theme),
                      'url': url_from_path(os.path.relpath(self.theme_path,
                                                           file_path))},
        })

        output_file = "%s.html" % file_path

        with codecs.open(output_file, 'w', 'utf-8') as f:
            f.write(page)
%prog alignextend bedpefile ref.fasta
dataset/ETHPy150Open saimn/sigal/sigal/plugins/media_page.py/PageWriter.write--crossover with--dataset/ETHPy150Open tanghaibao/jcvi/formats/bed.py/alignextend