view 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
line wrap: on
line source


<macro name="doc not found" requires="doc">
</macro>

<macro name="doc_text" dot_parameter="text" requires="doc">
	<div style="clear:both;margin:.5em 0 1em">
		<n.text/>
	</div>
</macro>

<macro name="binary doc" requires="binary_doc">
	<div style="clear:both;margin:.5em 0 1em">
		<n.value/>

		<n.if.has_parameters>
			<then>
				<h3 style="margin-top:1em">
					<t>Parameters</t>
				</h3>

				<style type="text/css">
					table.doc-parameters {
						cell-spacing: 0;
						margin: 0 0 1em .5em;
					}
					table.doc-parameters td {
						padding: .3em .4em;
					}
				</style>
				<table class="doc-parameters">
					<n.parameter_list.loop.>
						<n.current_parameter.>
							<tr>
								<td class="bold"><n.name/></td>
								<td class="weak-color">
									<n.description/>
								</td>
								<td style="font-style:italic">
									<n.if.is_dot_parameter>
										<then>dot parameter</then>
									</n.if.is_dot_parameter>
									<n.if.is_optional>
										<then>optional</then>
									</n.if.is_optional>
								</td>
							</tr>
						</n.current_parameter.>
					</n.parameter_list.loop.>
				</table>
			</then>
		</n.if.has_parameters>

		<h3>Requires</h3>
		<div style="margin:0 0 1em 1em"><n.requires/></div>

		<n.if.adds_namespace>
			<then>
				<h3>Added Namespace</h3>
				<div style="margin:0 0 1em 1em"><n.added_namespace/></div>
			</then>
		</n.if.adds_namespace>

		<h3>Binary Details</h3>
		<div style="margin:0 0 1em 1em"><n.binary_details/></div>

		<h3>Other Binary Commands in <i><n.requires/></i></h3>
		<div style="margin:0 0 1em 1em">
			<n.related_commands.join. separator="&nbsp;&nbsp; ">
				<n.current_command.>
					<a href="[n.simple_command_path/]"><n.name/></a>
				</n.current_command.>
			</n.related_commands.join.>
		</div>
	</div>
</macro>

<macro name="simple_command_path" requires="command_info">
	<n.macro_viewer_path>
		<id><n.use_text_encoder.id/></id>
	</n.macro_viewer_path>
</macro>