close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 3 and Version 4 of RequestHandlers


Ignore:
Timestamp:
Jun 25, 2008, 2:00:12 PM (16 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RequestHandlers

    v3 v4  
    3232
    3333Note that in this particular case, the values for `year` and `month` are automatically converted to numbers, due to the use of the `\d+` pattern in the route path.
     34
     35= Builtin Request Handlers =
     36
     37Diva comes with a couple of generic request handlers that can be used as-is with some parameterization.
     38
     39 `diva.routing:delegate`:: Delegate request processing to a different WSGI application.
     40 `diva.routing:redirect`:: Send an HTTP redirect to a different URL
     41 `diva.static:directory`:: Serve static files from a specific directory
     42 `diva.static:file`:: Serve a specific static file
     43 `diva.templating:view`:: Render a given template
     44