Created
January 10, 2017 23:24
-
-
Save ddahan/28d75eee4551ff2d877dd041ce389ad6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template | |
app = Flask(__name__) # create the application instance :) | |
app.config.from_object(__name__) # load config from this file | |
# External URLs | |
ext_urls = dict( | |
linked_in="https://www.linkedin.com/in/daviddahanepita", | |
medium="https://medium.com/@ddahan/latest", | |
mailto="mailto:[email protected]", | |
magnetiz="http://www.magnetiz.fr", | |
padam="http://padambus.com", | |
auchan="https://www.auchandirect.fr" | |
) | |
# Views | |
@app.route('/') | |
def landing(): | |
return render_template('landing.html', ext_urls=ext_urls) | |
@app.route('/projects/') | |
def projects(): | |
return render_template('projects.html', ext_urls=ext_urls) | |
@app.route('/consulting/') | |
def consulting(): | |
return render_template('consulting.html', ext_urls=ext_urls) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment