/[webpac2]/trunk/conf/output/tt/html.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/conf/output/tt/html.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (hide annotations)
Sat Nov 19 23:48:24 2005 UTC (18 years, 6 months ago) by dpavlin
File size: 532 byte(s)
 r8980@llin:  dpavlin | 2005-11-20 00:49:22 +0100
 implement data_structure that returns HASH and not ARRAY.
 
 Little explanation for this rationale:
 
 Array was needed back in WebPAC v1 because order of tags in import_xml was
 important. However, since we are no longer depending on order of tags in
 input/*.xml, hash is much better choice.

1 dpavlin 16 <html>
2     <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
4     <title>[% headline %]</title>
5     </head>
6     <body>
7     <table>
8     [%
9 dpavlin 70 FOREACH key IN data.keys ;
10     d = data.key ;
11 dpavlin 16 IF d.display
12     -%]
13     <tr class="[% d.tag %]">
14     <td>
15     [% d.name %]
16     </td>
17     <td>
18     [%
19     IF (d.tag == 'BroaderTerm' || d.tag == 'NarrowerTerm' || d.tag == 'RelatedTerm') ; '<ul><li>' ; d.display.sort.join("</li><li>") | CROVOC_img ; '</li></ul>' ;
20 dpavlin 33 ELSE ; d.display.join(" ") ; END
21 dpavlin 16 -%]
22     </td>
23     </tr>
24     [% END ;
25     END ;
26     -%]
27     </table>
28     </body>
29     </html>

  ViewVC Help
Powered by ViewVC 1.1.26