Пример #1
0
def story():
    story = Story(
        KEYS, """Once upon a time in a long-ago {place}, there lived a
       large {adjective} {noun}. It loved to {verb} {plural_noun}.""")
    answers = {}
    for key in KEYS:
        answers[key] = request.form[key]
    story = story.generate(answers)
    return render_template("story.html", story=story)