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
#!/usr/bin/env python3 | |
""" | |
Render a markdown file into HTML via Flask app on localhost. | |
Includes live-reload using HTTP long polling and a bit of vanilla JS. | |
Made pretty with https://picocss.com | |
[1]$ pip install Flask Flask-Caching Flask-Markdown requests | |
[1]$ flask run | |
[2]$ open http://localhost:5000/README.md |
OlderNewer