Created
April 29, 2012 18:35
-
-
Save Bentley4/2552506 to your computer and use it in GitHub Desktop.
Files adjusted as Burhan Khalid suggested
This file contains 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('flaskwp1') | |
#webcode = open('webcode.html').read() | |
@app.route('/') | |
def webprint(): | |
return render_template('webcode.html') | |
if __name__ == '__main__': | |
app.run(host = '0.0.0.0', port = 3000) |
This file contains 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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="url('static', filename='webcodestyle.css')"/> | |
<style type="text/css"> h1 {color: red;}</style> | |
</head> | |
<body> | |
<h1>My First Heading</h1> | |
<p>My first paragraph.</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment