File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ web applications
5
5
6
6
Why?
7
7
-----
8
- I got tired of dealing with the same boring WSGI- stuff everytime
8
+ I got tired of dealing with the same boring WSGI stuff every time
9
9
I wanted to make a small web-utility in django, but I didn't want
10
10
to go to far away from it, so I made this little thing to ease the
11
11
work a bit.
@@ -15,9 +15,14 @@ How it works
15
15
16
16
Example::
17
17
18
+ from pyroutes import application, route
19
+
18
20
@route('/')
19
21
def index(request, name='world'):
20
- return Response('Hello %s!' % name)
22
+ return 'Hello %s!' % name
23
+
24
+
25
+ The above creates a complete WSGI compliant application. Result::
21
26
22
27
GET /
23
28
Hello world!
@@ -33,7 +38,7 @@ Templating
33
38
----------
34
39
35
40
pyroutes includes a small xml-based templating system called xml-template.
36
- For more information about xml-template, check out its bzr- repo from
41
+ For more information about xml-template, check out its bzr repo from
37
42
http://bzr.sesse.net/xml-template
38
43
XML-Template is released under the GPLv2 license.
39
44
You can’t perform that action at this time.
0 commit comments