In routes.py, you can do:
routers = dict(
BASE = dict(
default_application='myapp',
default_controller='default',
default_function='index',
functions=['function1', 'function2', 'function3']))
In that case, /my-slug will be routed to /myapp/default/index/my-slug.
If instead you want to map different slugs to different controllers and functions, you could do that by looking up the slug in a database (or some other means of storage) and setting request.controller
and request.function
in a model file, but you probably don't want to have to do an extra database lookup on every request. Instead, you could use the pattern-based re-write system, but you'll have to set up patterns for every slug.