docs: def js_reverse_inline(context):
      """
      Outputs a string of javascript that can generate URLs via the use
      of the names given to those URLs.
      """
      if 'request' in context:
          default_urlresolver = get_resolver(getattr(context['request'], 'urlconf', None))
      else:
          default_urlresolver = get_resolver(None)
      return mark_safe(generate_js(default_urlresolver))