From 1491db7e1e48d25047b81912298d665477591d4b Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 6 Oct 2017 15:04:19 -0400 Subject: [PATCH] fixing url rendering on usage --- net/addr/app/templates/usage.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/addr/app/templates/usage.html b/net/addr/app/templates/usage.html index 668408a..93c5bde 100644 --- a/net/addr/app/templates/usage.html +++ b/net/addr/app/templates/usage.html @@ -9,7 +9,7 @@
  • It will display it nicely if you're in a browser, otherwise it will return raw/plaintext JSON.
  • Use raw if you want to force raw plaintext JSON output.
  • -
  • html: Force rendering in HTML
  • +
  • html: Force rendering in HTML
  • @@ -25,26 +25,26 @@
  • Default is 4 for "desktop" browsers (if json is enabled), and no indentation otherwise.
  • -

    Examples

    +

    Examples

    {% set scheme = 'https' if request.is_secure else 'http'%}

    - + - + - + - +
    URL Behavior
    {{ request.base_url }}{{ scheme }}://{{ request.headers['host'] }}/ Displays HTML and "Human" formatting if in a graphical browser, otherwise returns a raw, unformatted JSON string.
    {{ request.base_url }}?raw=1{{ scheme }}://{{ request.headers['host'] }}/?raw=1 Renders a raw, unformatted JSON string if in a graphical browser, otherwise no effect. All other parameters ignored (if in a graphical browser).
    {{ request.base_url }}?html=1{{ scheme }}://{{ request.headers['host'] }}/?html=1 Forces HTML rendering on non-graphical clients.
    {{ request.base_url }}?json=1&tabs=4{{ scheme }}://{{ request.headers['host'] }}/?json=1&tabs=4 Returns JSON indented by 4 spaces for each level (you can leave "json=1" off if it's in a non-graphical browser, unless you specified "html=1").