Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created April 2, 2010 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jashkenas/353524 to your computer and use it in GitHub Desktop.
Save jashkenas/353524 to your computer and use it in GitHub Desktop.
# This Python:
@cache('public')
@get('/')
def hello():
return 'Hello World!'
# Can be done like this with CoffeeScript:
cache 'public', get('/', (->
'Hello World!'))
# Or:
get '/', ->
'Hello World!'
cache '/'
# Or:
get '/', ->
cache this
'Hello World!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment