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):

class Index(grok.View):

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

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.
  • a collection of sample apps written in Grok/Zope3 by Luciano Ramalho as part of the Google Summer of Code.

Watch Grok in Action