@freezer.register_generator
def api_page():
    api_folder = path.join(root_folder, 'api')
    for (root, dirs, files) in os.walk(api_folder):
        for file in files:
            (yield {'page_path': path.join(path.relpath(root, api_folder), file).replace(os.sep, '/')})
@freezer.register_generator
def api_page():
    api_folder = path.join(root_folder, 'api')
    for (root, dirs, files) in os.walk(api_folder):
        for file in files:
            (yield {'page_path': path.join(path.relpath(root, api_folder), file).replace(os.sep, '/')})