It looks like you're offline.
Open Library logo
additional options menu

This doc was last edited by Anand Chitipothu June 19, 2009.

plugin upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
$def with (path="", limit=50, use_repr=False)

$ path = query_param("path", path)
$ page = safeint(query_param("page", "0"))
$ pages = list_pages(path, limit=limit, offset=page * limit)

<!--islist-->

<div class="contenttext">
<ul>
$for p in pages:
    $if p.type.key != '/type/delete':
        $if use_repr:
            <li>$:thingrepr(p)</li>
        $else:
            <li><a href="$homepath()$p.key">$p.key</a></li>
</ul>
</div>

<div class="copyright-footer">
$if page != 0:
    &larr; <a href="$:changequery(page=page - 1)" rel="nofollow">$_.prev</a>

$if len(pages) == limit:
    ... <a href="$:changequery(page=page + 1)" rel="nofollow">$_.next</a> &rarr;
<div>