Created
          February 2, 2021 18:16 
        
      - 
      
- 
        Save cbscribe/493271fbdf2f1e8cc361e82071ee4108 to your computer and use it in GitHub Desktop. 
    Flask starter example
  
        
  
    
      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__) | |
| @app.route("/") | |
| def index(): | |
| return render_template("index.html", name="Emily") | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Welcome</title> | |
| </head> | |
| <body> | |
| Hello, {{ name }}. | |
| </body> | |
| </html> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment