templates/layout.tmpl
changeset 6 5565d94da522
parent 5 9ed4c7d2bdd2
child 8 0ce1f471e9d7
equal deleted inserted replaced
5:9ed4c7d2bdd2 6:5565d94da522
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 
       
     3 #def page_title
       
     4 qmsk.net
       
     5 #end def
       
     6 #def page_content
       
     7 <h1>Content Goes Here</h1>
       
     8 
       
     9 Content goes here.
       
    10 #end def
       
    11 
       
    12 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
       
    13     <head>
       
    14         <title>qmsk.net :: $page_title</title>
       
    15         <link rel="Stylesheet" type="text/css" href="$site_url/style.css" />
       
    16     </head>
       
    17     <body>
       
    18             <div id="header">
       
    19                 QMSK.NET
       
    20             </div>
       
    21  
       
    22             <ul id="nav">
       
    23                 #for $menu_page_path in $page.parent.menu
       
    24                 <li><a href="$page_root/$menu_page_path"#if $page.path == $menu_page_path then ' id="selected-page"' else '' #>$menu_page_path</a></li>
       
    25                 #end for
       
    26             </ul>
       
    27 
       
    28             <div id="content">
       
    29                 $page_content
       
    30             </div>
       
    31     </body>
       
    32 </html>
       
    33