aaronsw/commentsareclosed — pull request #1 by poundifdef (2012-09-01 22:33:51+00:00)
Title: New template

To see changes, visit `http://localhost:5000/bobby`

This pull request makes the following changes:

1. Modifies request handler to actually make use of the `path` URL parameter. This looks for anything in the `templates/` folder which matches that name, and renders its index.html if it finds one. Otherwise it shows a default page.

2. Add a folder for static assets, along with a jinja2 macro to easily do the path-related magic

3. Add new template, called "bobby", to this website.

TODO:

1. Place that macro in the default index.html file. I couldn't get this to work properly.

I'm happy to make any changes you think are appropriate for this (code style, re-factoring, cleanup, etc.)

Enjoy!