def main(): '''Main page of the forum.''' posts = "".join(POST % (date, text) for text, date in get_posts()) html = HTML_WRAP % posts return html
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