Skip to content

Instantly share code, notes, and snippets.

@djmitche
Forked from tomprince/class.py
Created September 21, 2012 15:13
Show Gist options
  • Save djmitche/3762092 to your computer and use it in GitHub Desktop.
Save djmitche/3762092 to your computer and use it in GitHub Desktop.
class MyRenderable(object):
def getRenderingFor(self, props):
return someStuff
properties.render(MyRenderable())
@properties.render
def doSomeRendering(props):
return someStuff
properties.render(doSomeRendering)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment