site/templates/layout.tmpl
author Tero Marttila <terom@fixme.fi>
Fri, 06 Feb 2009 20:46:43 +0200
changeset 5 9ed4c7d2bdd2
parent 2 ec68a0f75c58
permissions -rw-r--r--
older work
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

#def page_title
qmsk.net
#end def
#def page_content
<h1>Content Goes Here</h1>

Content goes here.
#end def

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>qmsk.net :: $page_title</title>
        <link rel="Stylesheet" type="text/css" href="$site_url/style.css" />
    </head>
    <body>
            <div id="header">
                QMSK.NET
            </div>
 
            <ul id="nav">
                #for $menu_page_path in $page.parent.menu
                <li><a href="$page_root/$menu_page_path"#if $page.path == $menu_page_path then ' id="selected-page"' else '' #>$menu_page_path</a></li>
                #end for
            </ul>

            <div id="content">
                $page_content
            </div>
    </body>
</html>