Mercurial > hg > nginx-site
annotate xsls/directive.xsls @ 102:c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Specifying <default> is made non-optional.
Visible changes:
- "types" and "proxy_set_header" get proper defaults (not yet displayed
nicely);
- "fastcgi_hide_header", "fastcgi_ignore_headers", "fastcgi_pass_header",
"proxy_hide_header", "proxy_ignore_headers", and "proxy_pass_header"
now have their (empty) defaults documented;
- mentions of "fastcgi_redirect_errors" and "proxy_redirect_errors" which
are long unsupported were removed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Oct 2011 05:15:24 +0000 |
parents | 1d315ef37215 |
children | 3ae68fe2e938 |
rev | line source |
---|---|
22 | 1 X:stylesheet { |
2 | |
3 X:template = "directive" { | |
4 <a name="{@name}"/> | |
5 <!-- <center><h4> !{@name} </h4></center> --> | |
6 <div class="directive"> | |
7 !! "syntax"; | |
8 !! "default"; | |
9 !! "context"; | |
10 X:if "(@appeared-in)" { | |
11 <strong>appeared in version</strong>: !{@appeared-in} | |
12 } | |
13 </div> | |
14 !! "para"; | |
15 } | |
16 | |
17 X:template = "syntax" { | |
18 X:if "position() = 1" { | |
19 <strong>syntax</strong>: | |
20 } else { | |
21 <code>       </code> | |
22 } | |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
23 <code> |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
24 !{../@name} |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
25 X:if "count(node()) != 0" { |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
26 X:text{ } !!; |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
27 } |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
28 </code> |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
29 <br/> |
22 | 30 } |
31 | |
32 X:template = "default" { | |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
33 X:if "position() = 1" { |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
34 <strong>default</strong>: |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
35 } |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
36 X:if "count(node()) = 0" { |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
22
diff
changeset
|
37 <strong> |
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
22
diff
changeset
|
38 !{document(concat($XML, '/i18n.xml')) |
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
22
diff
changeset
|
39 /i18n/text[@lang = $LANG]/item[@id='none']} |
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
22
diff
changeset
|
40 </strong> |
22 | 41 } else { |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
42 <code> !{../@name} X:text{ } !!; </code> |
22 | 43 } |
44 <br/> | |
45 } | |
46 | |
47 X:template = "context" { | |
48 X:if "position() = 1" { | |
49 <strong>context</strong>: | |
50 } | |
51 X:if "count(text()) = 0" { | |
52 <strong>any</strong> | |
53 } else { | |
54 <code> !!; </code> | |
55 } | |
56 X:if "position() != last()" { | |
57 X:text{, } | |
58 } else { | |
59 <br/> | |
60 } | |
61 } | |
62 | |
63 } |