/upstream/templates/type/homepage/view.tmpl
Type: /type/template
body: value: $def with (page)

$ title = page.title or page.key

$if title.startswith("i18n::") and title.count(':') == 3:
    $ namespace = title.split(':')[2]
    $ key = title.split(':')[3]
    $ title = i18n.get(namespace, key)

$var title: $title
        
$if '<!--suppress-title-->' not in page.body:
    <div id="contentHead">
        $:macros.databarView(page)
        <div class="head">
            <h1>$title</h1>
        </div>
    </div>

$ text = format(page.body)

<div id="contentBody">

$if utf8('<!--islist-->') in utf8(text):
    $:text
    $:macros.Paginate()
    <br/>
$else:
    $:text

    <div class="clearfix"></div>
    <div class="section">
        $:render_template("lib/history", page)
    </div>
</div>
title: Open Library home page
plugin: openlibrary