adamburmister/gitprint.com — pull request #14 by Mause (2014-05-16 13:06:35+00:00)
Title: Gist printing partially implemented 

This is only a partial implementation, reusing much of what was already implemented of the gist support, and as such does not interact with the Github Gists API at all. Ideally, the implementation would not stop here, but allow for users to specify a file within the gist, as a single gist can contain multiple files.

This implementation just takes the files as they come; if you request the [root url](https://gist.githubusercontent.com/Mause/c42665f6771fd2b79eb7/raw/f42dca0f58cecfc7c1becb2401700c6e3dd0cf83/api.py
) it appears to only return the contents of the first file in the gist. As detailed in the [Gist API docs](https://developer.github.com/v3/gists/#get-a-single-gist) it is possible to get the urls for the other files within the gist, which would allow for users to select a single file to be converted.

On an aside, much of most of the url handlers are near identical; probably wouldn't be a bad idea to refactor them into a single function :smile: