Commits

Ralph Bean committed 1745a09

Step 2 -- dynamic content.

  • Participants
  • Parent commits f527e78

Comments (0)

Files changed (2)

       <body>
           <h1>My Application</h1>
           <p>Hello World!</p>
+          <pre>$w.req</pre>
       </body>
   </html>
 
 import tw2.core
+import tw2.forms
 
 class Index(tw2.core.Page):
     template = 'genshi:./index.html'
 
+    def fetch_data(self, req):
+        self.req = str(req)
+
 tw2.core.dev_server()