Skip to content

Instantly share code, notes, and snippets.

@ddahan
Created January 10, 2017 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddahan/28d75eee4551ff2d877dd041ce389ad6 to your computer and use it in GitHub Desktop.
Save ddahan/28d75eee4551ff2d877dd041ce389ad6 to your computer and use it in GitHub Desktop.
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:fake@david-dahan.com",
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