Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 9, 2019 05:41
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 parzibyte/6384830eb0c6c9e9c689ab6ca3813ca9 to your computer and use it in GitHub Desktop.
Save parzibyte/6384830eb0c6c9e9c689ab6ca3813ca9 to your computer and use it in GitHub Desktop.
"""
Plantillas con Flask
https://parzibyte.me/blog
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def inicio():
return render_template("hola.html", nombre="Luis")
@app.route('/suma')
def suma():
return render_template("suma.html")
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8000, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment