@app.route('<STR_LIT>')<EOL>def link_page(request, n, offset):
n = int(n)<EOL>offset = int(offset)<EOL>n = min(max(<NUM_LIT:1>, n), <NUM_LIT:200>)  <EOL>link = "<STR_LIT>"<EOL>html = ['<STR_LIT>']<EOL>for i in xrange(n):<EOL><INDENT>if i == offset:<EOL><INDENT>html.append('<STR_LIT>'.format(i))<EOL><DEDENT>else:<EOL><INDENT>html.append(link.format(url_for('<STR_LIT>', n=n, offset=i), i))<EOL><DEDENT><DEDENT>html.append('<STR_LIT>')<EOL>return '<STR_LIT>'.join(html)<EOL>
Generate a page containing n links to other pages which do the same.