/templates/site.tmpl
Type: /type/template
body: value: $def with (page)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="msvalidate.01" content="9CE699F8BF78FBC38E82E28B2F9293E1" />
    <meta name="google-site-verification" content="KrqcZD4l5BLNVyjzSi2sjZBiwgmkJ1W7n6w7ThD7A74" /> 
    <link rel="icon" href="http://openlibrary.org/images/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="http://openlibrary.org/images/favicon.ico" type="image/x-icon" />

    $if ctx.get("robots"):
        <meta name="robots" content="$ctx.robots" />

    $add_javascript('/static/js/jquery/jquery.js')
    $add_javascript('/static/js/jquery/jquery.slicker.js')

    <title>$:page.title ($_.open_library)</title>

    $for link in ctx.get("links", []):
        $:link

    $for s in ctx.stylesheets:
        <link rel="stylesheet" type="text/css" href="$s" />

    <link href="/css/master.css?format=raw" rel="stylesheet" type="text/css" />

    $for url in ctx.javascripts:
        <script src="$url" type="text/javascript"></script>

</head>

<body>
    <div id="contentwrapper">
        <div style="padding: 2px; background-color: #000; color: #fff;">
            <p align="center"><span style="color: #ffa337;"><b><i>PSST!</i></b></span> Would you like to <a href="http://upstream.openlibrary.org" style="color: #3b96ca; text-decoration: underline;">try out the Open Library redesign</a>? It'll be going live soon, and there's more info on the <a href="http://blog.openlibrary.org/2010/03/17/announcing-the-open-library-redesign/" style="color: #3b96ca; text-decoration: underline;">blog</a>.</p>
        </div>
        <div id="toolbar">
            <div class="logotype"><a href="/" class="white">$_.open_library</a> <a href="/beta" class="white" style="font-size: 0.8em; text-decoration: underline">$_.beta</a></div>
            <div class="navlinks">
            $if ctx.user:
                <div style="display: none;">
                    <form name='logout' action="$homepath()/account/logout" method='POST'></form>
                </div>
                $:_.welcome_user(homepath() + ctx.user.key, ctx.user.displayname)
                | <a href="$homepath()/account/preferences">$_.preferences</a>
                | <a href="#" onclick="document.forms['logout'].submit()">$_.logout</a>
            $else:
                <a href="/account/login" class="white">$_.login</a>
            </div>
        </div>


    $if ctx.error:
        <div id="error"><span class="errorhead">ERROR:</span> $ctx.error <div id="hideerror"><a href="#" onclick="tOff('error')" class="white">x</a></div></div>
        
    <div>$:page</div>
    </div>
    
    <div id="footer">
        <div class="logotype">
            <a href="/" class="white">$_.open_library</a>
            <a href="/beta" class="white" style="font-size: 0.8em; text-decoration: underline">$_.beta</a>
        </div>
        <div class="navlinks">
            <a class="white" href="/about">$_.about_us</a> |
            <a class="white" href="/index/index.html">Index</a> |
            <a class="white" href="http://www.archive.org/">$_.internet_archive</a> |
            <a class="white" href="http://www.opencontentalliance.org/">OCA</a> |
            <a class="white" href="http://creativecommons.org/">CC</a> |
            <a class="white" href="http://wikimediafoundation.org/">WMF</a> |
            <a class="white" href="/about/contact">$_.contact_us</a>
        </div>
    </div>

</body>
</html>
title: site template