Skip to content

Commit 2b02080

Browse files
committed
some updates to php alike
1 parent 171c912 commit 2b02080

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

controllers/lesson_PHP_alike.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@ def pages():
1313
if request.args:
1414
page = request.args[0] # could adapt another page extension/ending here
1515
else:
16-
page = 'start.html'
16+
return DIV("No page found, please choose :", # could have default or so..
17+
UL( A('one.html', _href='one.html') ,
18+
A('two.html', _href='two.html') ,
19+
)
20+
)
1721
return response.render( 'pages/'+page, {} ) # we just pick the view according to given page

views/pages/one.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{extend 'layout.html'}}
1+
22

33
<h1>Hello {{="World"}}</h1>
44

0 commit comments

Comments
 (0)