Skip to content

Instantly share code, notes, and snippets.

@Bentley4
Created April 29, 2012 14:14
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 Bentley4/2550655 to your computer and use it in GitHub Desktop.
Save Bentley4/2550655 to your computer and use it in GitHub Desktop.
flaskwp1
import flask
app = flask.Flask('flaskwp1')
webcode = open('webcode.html').read()
@app.route('/')
def webprint():
return webcode
if __name__ == '__main__':
app.run(host = '0.0.0.0', port = 3000)
<html>
<head>
<link rel="stylesheet" type="text/css" href="webcodestyle.css"/>
<style type="text/css"> h1 {color: red;}</style>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
p {color: green;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment