File: api_redirect.html

package info (click to toggle)
pandas 0.19.2-5.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 101,196 kB
  • ctags: 83,045
  • sloc: python: 210,909; ansic: 12,582; sh: 501; makefile: 130
file content (15 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% set pgn = pagename.split('.') -%}
{% if pgn[-2][0].isupper() -%}
    {% set redirect = ["pandas", pgn[-2], pgn[-1], 'html']|join('.') -%}
{% else -%}
    {% set redirect = ["pandas", pgn[-1], 'html']|join('.') -%}
{% endif -%}
<html>
    <head>
        <meta http-equiv="Refresh" content="0; url={{ redirect }}" />
        <title>This API page has moved</title>
    </head>
    <body>
        <p>This API page has moved <a href="{{ redirect }}">here</a>.</p>
    </body>
</html>