File: example.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 (34 lines) | stat: -rw-r--r-- 1,682 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
<!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)" tal:condition="options/next">next</a>
    </div>
    <h1 tal:condition="not: options/gallery">PyX — Example: <tal:block content="options/example/filename"/></h1>
    <h1 tal:condition="options/gallery">PyX — Gallery: <tal:block content="options/example/filename"/></h1>

    <div class="exampledownloads">
      <div tal:repeat="download options/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="options/example/title">filename</h2>
    <div class="exampleimage">
      <img tal:attributes="alt options/example/png; src options/example/png; width options/example/width; height options/example/height">
    </div>
    <div class="examplecode" tal:content="structure options/example/code">Code</div>
    <tal:block tal:condition="options/example/text">
        <h3>Description</h3>
        <div class="exampletext" tal:content="structure options/example/text">Code</div>
    </tal:block>

  </div>

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