[Subversion] / PEAK / src / peak / web / tests / showlist.pwt  

View of /PEAK/src/peak/web/tests/showlist.pwt

Parent Directory | Revision Log
Revision: 1907 - (download)
Tue Oct 26 01:09:22 2004 UTC (19 years, 6 months ago) by pje
File size: 534 byte(s)
Implemented 'with:content-type="whatever"', 'this:is="page"',
'with:fragment-layout="layoutpath"', etc., as described in:

  http://www.eby-sarna.com/pipermail/peak/2004-October/001835.html

Note that this means existing PWT pages will no longer function as web
pages unless you add 'with:page-layout="/default"' or 'this:is="page"' to
the top-level element.  You can use the shorter form if you don't need any
text outside the top-level element (such as whitespace, <!DOCTYPE, a DTD
fragment, or the <?xml PI).  Otherwise, you should use the longer
'with:page-layout="/default"' form, which means, "use the whole file as
a page.  The intended tradeoff is to favor page fragments over full pages,
pushing most HTML details into one or more page layouts.  But, it's not
clear just yet if this is the right thing to do, so this decision could
be reversed or tweaked later.
<html with:page-layout="/default">
 <head>
  <title>Python Object <span this:replace="@@repr"/></title>
 </head>
 <body>
<h1 content:replace="@@test-params"><span content:is="foo">Python Object <span this:replace="@@repr"/></span></h1>
<hr />
<table content:list=".">
<tr this:is="header">
<td>Name</td><td>Last modified</td><td>Size</td><td>Description</td>
</tr>
<tr this:is="listItem">
<td><a href="?" this:url.href="."><span this:replace="@@repr">?</span></a></td>
<td></td><td></td><td></td>
</tr>
</table>
<hr />
</body></html>

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help