File: examples.pt

package info (click to toggle)
pyx3 0.17-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,328 kB
  • sloc: python: 27,656; makefile: 225; ansic: 130; sh: 17
file content (36 lines) | stat: -rw-r--r-- 1,808 bytes parent folder | download
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
<!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['prev'], options)">prev</a>
      <a class="examplenavigation" href="../index.html">up</a>
      <a class="examplenavigation" tal:attributes="href python: options['mkrellink'](options['next'], options)">next</a>
    </div>
    <h1 tal:condition="not: options/gallery">PyX — Examples: <tal:block content="options/title"/></h1>
    <h1 tal:condition="options/gallery">PyX — Gallery: <tal:block content="options/title"/></h1>

    <tal:block tal:content="structure options/text"/>

    <div class="exampleseparator" tal:condition="options/text"></div>
    <h2>Overview for this section</h2>
    <span class="example" tal:repeat="example options/examples">
      <div class="exampleseparator" tal:condition="not: repeat/example/start"></div>
      <div class="examplethumbnail">
        <a tal:attributes="href example/html"><img tal:attributes="alt example/png; src example/thumbpng; width example/thumbwidth; height example/thumbheight" border=0></a>
      </div>
      <a tal:attributes="href example/html"><h3 tal:content="example/title">title</h3></a>
      <tal:block content="structure example/shorttext"/>
      <tal:block condition="python: example.shorttext != example.text">
        <a tal:attributes="href example/html" tal:condition="example/shorttext">more&nbsp;...</a>
        <tal:block content="structure string:</p>" condition="example/shorttext"/>
      </tal:block>
    </span>
    <div style="clear: both;"></div>

  </div>

</html>
<!-- vim:set syntax=html: -->