Skip to content

Instantly share code, notes, and snippets.

@edsu
Created November 20, 2009 20:49
Show Gist options
  • Select an option

  • Save edsu/239770 to your computer and use it in GitHub Desktop.

Select an option

Save edsu/239770 to your computer and use it in GitHub Desktop.
from routes import Mapper
map = Mapper()
map.connect('book', '/book/{isbn}', controller='item', action='book')
map.connect('journal', '/journal/{issn}', controller='item', action='journal')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment