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").