Skip to content

Instantly share code, notes, and snippets.

@tav
Created July 23, 2009 06:46
Show Gist options
  • Select an option

  • Save tav/152495 to your computer and use it in GitHub Desktop.

Select an option

Save tav/152495 to your computer and use it in GitHub Desktop.
@register_service('hello', token_required=False)
def hello(ctx, *args, **kwargs):
if ctx.render_format == 'html':
ctx.post_render_hook = lambda ctx, result: "<strong>Hello</strong><br />%s" % result
return {
'args': args,
'kwargs': kwargs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment