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

This doc was last edited by Anand Chitipothu June 20, 2011.

plugin openlibrary
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 (page)

$if not ctx.get("sent_head"):
    $:render_template("site/head.tmpl")

$if not ctx.get("sent_neck"):
    $:render_template("site/neck.tmpl", title=page.title)

$:render_template("site/body", page)

$:render_template("site/footer")

$if "stats" in ctx.features:
    <!--
    SUMMARY:
    
    $ stats = stats_summary()
    $for k in stats:
        $k: $:dict(stats[k])
    
    DETAILS:
    
    $for s in ctx.get("stats", []):
        $s.name $s.time
            $:s.data
    -->