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 1 and Version 2 of RequestHandlers


Ignore:
Timestamp:
Jun 25, 2008, 12:45:27 PM (13 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RequestHandlers

    v1 v2  
    55{{{
    66#!python
     7from diva.templating import output, render
     8
    79@output('index.html')
    810def index(request, response):
    911    return render(message='Hello, world!')
    1012}}}
     13
     14This defines a function called `index` that will respond to requests by rendering the template `index.html`.