Skip to content
Browse files

edit

  • Loading branch information...
1 parent 1135f6c commit e53f3ff8f03ca1fff999ce63973372fae96d3162 @smallfish smallfish committed with anandology Nov 12, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 cookbook/application_processors.md
View
6 cookbook/application_processors.md
@@ -39,4 +39,8 @@ you can write or use global variables in hook function, for example: web.header(
app.add_processor(web.loadhook(my_loadhook))
-###Tip: and also can use web.ctx or web.input() in hook.
+###Tip: and also can use web.ctx or web.input() in hook.
+
+ def my_loadhook():
+ input = web.input()
+ print input

0 comments on commit e53f3ff

Please sign in to comment.
Something went wrong with that request. Please try again.