@library.global_function
@contextfunction
def display_context(context, include_callables=False):
 if (not settings.DEBUG):
  return ''
 keys = sorted(context.keys())
 parts = ['<dt>{key}</dt><dd>{value}</dd>'.format(key=key, value=repr(context[key])) for key in keys if (include_callables or (not callable(context[key])))]
 html = '<dl class="jinja-context">{parts}</dl>'.format(parts=''.join(parts))
 return Markup(html)

@ library . global_function @ contextfunction def display_context ( context , include_callables = False ) : if ( not settings . DEBUG ) : return '' keys = sorted ( context . keys ( ) ) parts = [ '<dt>{key}</dt><dd>{value}</dd>' . format ( key = key , value = repr ( context [ key ] ) ) for key in keys if ( include_callables or ( not callable ( context [ key ] ) ) ) ] html = '<dl class="jinja-context">{parts}</dl>' . format ( parts = '' . join ( parts ) ) return Markup ( html )
return a marked-up chunk of content containing the items in the template context .