Mako Templates Server is based on the run_wsgi.py script that comes with the Mako Python library. In addition to serving static files such as images and text files, the server renders Mako templates in HTML and JSON formats.
The Mako website says that “Mako is a template library written in Python.” Apart from using it as my website's templating library, I like using Mako even when working on projects that require only static HTML outputs.
Even when working with static web pages, I take advantage of having the ability of including code snippets from separate files so that I don't have to keep on copy-pasting them on every page, every time those snippets are modified. Also, the ability to mix in some Python code to, say, generate HTML elements on the fly.
Using Mako this way is pretty much like using straight-forward PHP (without a framework) served using its built-in development server, and not having to install Apache or a similar full-blown web server on the work station.
Using a terminal, navigate to a system directory that will act as the public folder.
Start the server by running: python /path/to/makoserv.py
Point your browser to http://0.0.0.0:5000 — warning: this will be accessible to other computers in your local area network, through http://[lan_ip_address]:5000
Change the 0.0.0.0 IP address to something else by starting the server with the following option: <ip_or_hostname>:<port_number>
For example: python makoserv.py localhost:8001 or python makoserv.py 127.0.0.1:6789