Skip to content

Commit 0609465

Browse files
committed
Updated example, improved hyphenation
1 parent 7e21127 commit 0609465

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ web applications
55

66
Why?
77
-----
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
99
I wanted to make a small web-utility in django, but I didn't want
1010
to go to far away from it, so I made this little thing to ease the
1111
work a bit.
@@ -15,9 +15,14 @@ How it works
1515

1616
Example::
1717

18+
from pyroutes import application, route
19+
1820
@route('/')
1921
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::
2126

2227
GET /
2328
Hello world!
@@ -33,7 +38,7 @@ Templating
3338
----------
3439

3540
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
3742
http://bzr.sesse.net/xml-template
3843
XML-Template is released under the GPLv2 license.
3944

0 commit comments

Comments
 (0)