All pastes #353748 Raw Edit

deuce868

public xml v1 · immutable
·published 2007-02-13 15:43 UTC
rendered paste body
master.kid file-----------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?python import sitetemplate ?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate"><head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>    <title py:replace="''">Your title goes here</title>    <meta py:replace="item[:]"/>    <style type="text/css">        #pageLogin        {            font-size: 10px;            font-family: verdana;            text-align: right;        }    </style>    <style type="text/css" media="screen">		@import "/static/css/style.css";    </style></head><body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">	<div id="page">		<div id="header">			<div class="container">				<div id="logo"><a href="#"><img src="/static/images/logo.gif" alt="AVW Systems" /></a></div>				<div id="slogan"><span>This is the slogan... this should be replaced by an image using css</span></div>			</div>		</div>		<div id="main_nav">			<ul id="nav">				<li class="active"><a href="#" title="Homepage">Home</a></li>				<li><a href="/content/about" title="About Us">About</a></li>				<li><a href="#" title="Our Products">Products</a></li>				<li><a href="#" title="Contact Us">Contact</a></li>			</ul>		</div>		<div id="main_content">			<div py:if="tg.config('identity.on',False) and not 'logging_in' in locals()" id="pageLogin">				<span py:if="tg.identity.anonymous">					<a href="/login">Login</a>				</span>				<span py:if="not tg.identity.anonymous">					Welcome ${tg.identity.user.display_name}.					<a href="/logout">Logout</a>				</span>			</div>			<div py:if="tg_flash" class="flash" py:content="tg_flash"></div>		    		    <!-- Get the child elements of main_content from chilren and place it here -->			<div py:replace="[item.text]+item[:]"/>			<!-- End of main_content -->		</div>		<div id="footer">&copy; 2006 AVW Systems.  All Rights Reserved.</div>	</div></body></html>master_one_col.kid----------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?python import sitetemplate ?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="master.kid"><head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>    <title py:replace="''">Your title goes here</title>    <meta py:replace="item[:]"/></head><body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">    <div id="main_content">		<div py:replace="[item.text]+item[:]"/>    </div></body></html>Project_list.kid------------------------------------------<!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" xmlns:py="http://purl.org/kid/ns#"    py:extends="'master_one_col.kid'"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/><title>${page_title}</title></head><body>  <div id="main_content">    <div py:for="project in project_list">      <div py:replace="project_widget.display(project=project)">        Quote goes here      </div>    </div>    </div></body></html>