コード例 #1
0
def scroll(lang):
    w = gibberish.generate_strings(lang, 5)
    return flask.render_template("scroll.html", words=w)
コード例 #2
0
def index(lang):
    w = gibberish.generate_strings(lang, 10)
    available_langs = gibberish.get_available_languages()
    lang_name = gibberish.get_language_full_name(lang)

    return flask.render_template("index.html", words=w, lang=lang, lang_name=lang_name, available_languages=available_langs)