Mercurial Hosting > nabble
comparison src/nabble/view/naml/doc.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 | |
2 <macro name="doc not found" requires="doc"> | |
3 </macro> | |
4 | |
5 <macro name="doc_text" dot_parameter="text" requires="doc"> | |
6 <div style="clear:both;margin:.5em 0 1em"> | |
7 <n.text/> | |
8 </div> | |
9 </macro> | |
10 | |
11 <macro name="binary doc" requires="binary_doc"> | |
12 <div style="clear:both;margin:.5em 0 1em"> | |
13 <n.value/> | |
14 | |
15 <n.if.has_parameters> | |
16 <then> | |
17 <h3 style="margin-top:1em"> | |
18 <t>Parameters</t> | |
19 </h3> | |
20 | |
21 <style type="text/css"> | |
22 table.doc-parameters { | |
23 cell-spacing: 0; | |
24 margin: 0 0 1em .5em; | |
25 } | |
26 table.doc-parameters td { | |
27 padding: .3em .4em; | |
28 } | |
29 </style> | |
30 <table class="doc-parameters"> | |
31 <n.parameter_list.loop.> | |
32 <n.current_parameter.> | |
33 <tr> | |
34 <td class="bold"><n.name/></td> | |
35 <td class="weak-color"> | |
36 <n.description/> | |
37 </td> | |
38 <td style="font-style:italic"> | |
39 <n.if.is_dot_parameter> | |
40 <then>dot parameter</then> | |
41 </n.if.is_dot_parameter> | |
42 <n.if.is_optional> | |
43 <then>optional</then> | |
44 </n.if.is_optional> | |
45 </td> | |
46 </tr> | |
47 </n.current_parameter.> | |
48 </n.parameter_list.loop.> | |
49 </table> | |
50 </then> | |
51 </n.if.has_parameters> | |
52 | |
53 <h3>Requires</h3> | |
54 <div style="margin:0 0 1em 1em"><n.requires/></div> | |
55 | |
56 <n.if.adds_namespace> | |
57 <then> | |
58 <h3>Added Namespace</h3> | |
59 <div style="margin:0 0 1em 1em"><n.added_namespace/></div> | |
60 </then> | |
61 </n.if.adds_namespace> | |
62 | |
63 <h3>Binary Details</h3> | |
64 <div style="margin:0 0 1em 1em"><n.binary_details/></div> | |
65 | |
66 <h3>Other Binary Commands in <i><n.requires/></i></h3> | |
67 <div style="margin:0 0 1em 1em"> | |
68 <n.related_commands.join. separator=" "> | |
69 <n.current_command.> | |
70 <a href="[n.simple_command_path/]"><n.name/></a> | |
71 </n.current_command.> | |
72 </n.related_commands.join.> | |
73 </div> | |
74 </div> | |
75 </macro> | |
76 | |
77 <macro name="simple_command_path" requires="command_info"> | |
78 <n.macro_viewer_path> | |
79 <id><n.use_text_encoder.id/></id> | |
80 </n.macro_viewer_path> | |
81 </macro> |