Created
October 20, 2013 20:09
-
-
Save jrm2k6/7074662 to your computer and use it in GitHub Desktop.
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
| @app.route('/') | |
| def show_home(): | |
| file_to_read = url_for('static', filename='posts/post1.txt') | |
| with open(filename, 'r') as f: | |
| return f.readlines() | |
| return show_home_page() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment