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.
- Timestamp:
-
Jun 25, 2008, 12:45:27 PM (16 years ago)
- Author:
-
cmlenz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
5 | 5 | {{{ |
6 | 6 | #!python |
| 7 | from diva.templating import output, render |
| 8 | |
7 | 9 | @output('index.html') |
8 | 10 | def index(request, response): |
9 | 11 | return render(message='Hello, world!') |
10 | 12 | }}} |
| 13 | |
| 14 | This defines a function called `index` that will respond to requests by rendering the template `index.html`. |