Skip to content

Instantly share code, notes, and snippets.

@edsu
Created November 20, 2009 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/239770 to your computer and use it in GitHub Desktop.
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