Personal tools
You are here: Home About What does Grok code look like?

What does Grok code look like?

Check out What Grok code looks like.

"Hello world" in Grok

import grok

class HelloWorld(grok.Application, grok.Model):
    pass

class Index(grok.View):
    pass

index = grok.PageTemplate("""
    <html><body>
        <p>ME GROK HELLO WORLD!</p>
    </body></html>
    """")

Show me more!

  • Herd of Mammoths: a very simple application that only goes a bit beyond "hello world".
  • Grokstar: a simple blog application written with Grok.
  • Grok Wiki: a simple wiki application written with Grok.
  • Paleosoft.org: a collection of sample apps written in Grok/Zope3 by Luciano Ramalho as part of the Google Summer of Code.

Watch Grok in Action