Flask test - Hello World - a first test post
Flask Python GithubWhat if you could ask your web application framework to generate a static set of HTML pages that you could put anywhere you wanted?
There is an argument for using ready-made software tools rather than reinventing the wheel. I could have used a static-site generator like Pelican or Nicola, but I enjoy programming with Python and Flask and wanted to write a blog that I completely owned, and learned how every bit of code works together coding it all up from scratch.
This is a static website hosted on GitHub. The page is based on the following tools:
- Flask, the microframework used for building sites.
- Flask-Flatpages, this extension can convert Markdown documents into HTML pages. I'm writing my blog posts in Markdown, a far more convenient format than HTML.
- Frozen-Flask, the extension that generates static pages by analyzing the web application's views (functions responsible for producing a page, or more technically, a HTTP response for a given URL).
- Bootstrap (blog template)
- Python Markdown Extension (including python-markdown-math)
This blog is inspired by this awesome tutorial.
My code for this flask blog site can be found in this GitHub repository.