예제 #1
0
def main():
    '''Main page of the forum.'''
    posts = "".join(POST % (date, text) for text, date in get_posts())
    html = HTML_WRAP % posts
    return html
예제 #2
0
def main():
    '''Main page of the forum.'''
    posts = "".join(POST % (post['time'], post['content']) for post in get_posts())
    html = HTML_WRAP % posts
    return html