repo.or.cz
/
sinatra_rb_pro_zdrojak.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Vychozi commit -- HelloWorld v nekolika jazycich
[sinatra_rb_pro_zdrojak.git]
/
hello_world.py
blob
2f8154d56eb6d573b833ca90bf3fc43f1562bd7b
1
# See http://webpy.org/
2
3
import
web
4
5
urls
= (
6
'/(.*)'
,
'hello'
7
)
8
app
=
web
.
application
(
urls
,
globals
())
9
10
class
hello
:
11
def
GET
(
self
,
name
):
12
if not
name
:
13
name
=
'world'
14
return
'Hello, '
+
name
+
'!'
15
16
if
__name__
==
"__main__"
:
17
app
.
run
()