Source

wheezy.web / demos / template / content / templates-preprocessor / shared / master.html

#require(_, path_for)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>#_('My Site') - \
        #def title():
        #end
        #title()</title>
        <link href="#path_for('static', path='css/site.css')" \
            type="text/css" rel="stylesheet" />
    </head>
    <body>
        <div class="page">
            <div id="header">
                <div id="title">
                    <h1><a href="#path_for('default')">#_('My Site')</a></h1>
                </div>
                <div id="logindisplay">
                    #include("shared/snippet/menu-signin.html")
                    #include("shared/snippet/menu-locale.html")
                </div>
                <div id="menucontainer">
                    #include("shared/snippet/menu-header.html")
                </div>
            </div>
            <div id="main">
                <div id="placeholder">
                    #def content():
                    #end
                    #content()\
                </div>
                <div id="footer">#_('Version') #__version__</div>
            </div>
        </div>
        #include("shared/snippet/script.html")
        #def script():
        #end
        #script()\
    </body>
</html>