Mercurial > hg > nginx-site
comparison xsls/body.xsls @ 32:2bcfb5f75e06
Supporting new format of <module> and <section>:
<module name="..." ...> and <section id="..." name="...">
Old format should be eventually removed.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 Sep 2011 13:13:21 +0000 |
parents | 61e04fc01027 |
children | 34dcd26f2894 |
comparison
equal
deleted
inserted
replaced
31:dc74e3a8f324 | 32:2bcfb5f75e06 |
---|---|
9 <body> | 9 <body> |
10 <table width="100%"> | 10 <table width="100%"> |
11 | 11 |
12 <tr> | 12 <tr> |
13 <td width="70%"><center><h3> | 13 <td width="70%"><center><h3> |
14 !{@title} X:if "$YEAR" { X:text{: } !{$YEAR} } | 14 !{@name | @title} X:if "$YEAR" { X:text{: } !{$YEAR} } |
15 </h3></center></td> | 15 </h3></center></td> |
16 | 16 |
17 <td rowspan="2" align="{$ALIGN}" valign="top"> | 17 <td rowspan="2" align="{$ALIGN}" valign="top"> |
18 <img src="/nginx.gif" alt="nginx"/><br/> | 18 <img src="/nginx.gif" alt="nginx"/><br/> |
19 | 19 |
27 </tr> | 27 </tr> |
28 | 28 |
29 <tr><td valign="top"> | 29 <tr><td valign="top"> |
30 | 30 |
31 <table width="100%"><tr><td align="{$ALIGN}"> | 31 <table width="100%"><tr><td align="{$ALIGN}"> |
32 X:for-each "section[@name]" { | 32 X:if "section[@id]" { |
33 <a href="#{@name}"> !{@title} </a><br/> | 33 X:for-each "section[@id]" { |
34 <a href="#{@id}"> !{@name} </a><br/> | |
35 } | |
36 } else { | |
37 X:for-each "section[@name]" { | |
38 <a href="#{@name}"> !{@title} </a><br/> | |
39 } | |
34 } | 40 } |
35 </td></tr></table> | 41 </td></tr></table> |
36 | 42 |
37 !!; | 43 !!; |
38 | 44 |