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