@app.route('/facts', defaults={'env': app.config['DEFAULT_ENVIRONMENT']})
@app.route('/<env>/facts')
def facts(env):
    envs = environments()
    check_env(env, envs)

    facts_dict = collections.defaultdict(list)
    facts = get_or_abort(puppetdb.fact_names)
    for fact in facts:
        letter = fact[0].upper()
        letter_list = facts_dict[letter]
        letter_list.append(fact)
        facts_dict[letter] = letter_list

    sorted_facts_dict = sorted(facts_dict.items())
    return render_template('facts.html',
        facts_dict=sorted_facts_dict,
        facts_len=sum(map(len,facts_dict.values())) + len(facts_dict)*5,
        envs=envs,
        current_env=env)
Displays an alphabetical list of all facts currently known to
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/facts