1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html metal:use-macro="options/maintemplate/macros/page">
<div metal:fill-slot="body">
<div class="examplenavigations">
<a class="examplenavigation" tal:attributes="href python: options['mkrellink'](options['next'], options)">next</a>
</div>
<h1 tal:condition="not: options/gallery">PyX — Examples</h1>
<h1 tal:condition="options/gallery">PyX — Gallery</h1>
<tal:block content="structure options/text"/>
<span class="example" tal:repeat="example options/examples">
<div class="exampleseparator"></div>
<div class="exampledownloads">
<div tal:repeat="download example/downloads" class="exampledownload">
<div><a tal:attributes="href download/filename" tal:content="download/suffixname">.xxx</a></div>
<div class="exampledownloadsize" tal:content="download/filesize"/>
</div>
</div>
<h2 tal:content="example/title">title</h2>
<div class="exampleimage">
<img tal:attributes="alt example/png; src example/png; width example/width; height example/height">
</div>
<div class="examplecode" tal:content="structure example/code">Code</div>
<tal:block tal:condition="example/text">
<h3>Description</h3>
<div class="exampletext" tal:content="structure example/text">Code</div>
</tal:block>
</span>
<div class="exampleseparator"></div>
<h2 tal:condition="not: options/gallery">Further examples</h2>
<ul>
<li tal:repeat="subpage options/subpages">
<a tal:attributes="href string:${subpage/dir}/index.html" tal:content="subpage/title">Examples</a>
</li>
</ul>
</div>
</html>
<!-- vim:set syntax=html: -->
|