[Checkins] SVN: grok/www/index.html Tested code sample on homepage
and added grok.View object to the sample code.
Darryl Cousins
darryl at darrylcousins.net.nz
Fri Apr 13 20:21:19 EDT 2007
Log message for revision 74126:
Tested code sample on homepage and added grok.View object to the sample code.
Changed:
U grok/www/index.html
-=-
Modified: grok/www/index.html
===================================================================
--- grok/www/index.html 2007-04-13 19:08:03 UTC (rev 74125)
+++ grok/www/index.html 2007-04-14 00:21:16 UTC (rev 74126)
@@ -81,11 +81,13 @@
class HelloWorld(grok.Application, grok.Model):
pass
- index = grok.PageTemplate("""
- <html><body>
- <p>ME GROK HELLO WORLD!</p>
- </body></html>
- """")
+class Index(grok.View):
+
+ render = grok.PageTemplate("""
+ <html><body>
+ <p>ME GROK HELLO WORLD!</p>
+ </body></html>
+ """)
</pre>
<ul class="simple">
<li><a class="reference" href="http://www.z3lab.org/sections/blogs/philipp-weitershausen/2007_01_09_you-thought-zope-3-wasn">Herd of Mammoths</a> is a very simple application that only goes a bit beyond "hello world".</li>
More information about the Checkins
mailing list