lib/page.py
author Tero Marttila <terom@fixme.fi>
Fri, 06 Feb 2009 21:31:02 +0200
changeset 7 d6a8258bd90e
parent 6 5565d94da522
child 8 0ce1f471e9d7
permissions -rw-r--r--
YES YES MOAR WSGI - Hello World

"""
    Handling page requests
"""

def handle_html (env) :
    return "A HTML page"


# list of page handlers, by type
type_handlers = [
    ('.html',   handle_html),
]

def lookup_handler (path) :
    """
        Look up and return a handler for the given page, or raise an error
    """

    return handle_html