Exemplo n.º 1
0
def index():
    """ Index page
    """
    prop = dict()

    prop['skills'] = Skill.query.all()
    prop['projects'] = Project.query.all()
    prop['clients'] = Client.query.all()
    prop['categories'] = Category.query.all()

    prop['STATIC_URL'] = STATIC_URL
    prop['DEBUG'] = DEBUG
    prop['IMAGES_URL'] = IMAGES_URL

    prop['title'] = Info.get_param('title')
    prop['about'] = Info.get_param('about')
    prop['google_analytics'] = GOOGLE_ANALYTICS

    if 'username' in session:
        prop['username'] = escape(session['username'])

    return render_template('index.html', **prop)