def write(self, album):
page = self.template.render(**self.generate_context(album))<EOL>output_file = os.path.join(album.dst_path, album.output_file)<EOL>with open(output_file, '<STR_LIT:w>', encoding='<STR_LIT:utf-8>') as f:<EOL><INDENT>f.write(page)<EOL><DEDENT>
Generate the HTML page and save it.