@@ -7,11 +7,11 @@
8# `;+ "miclus"`
8# `;+ "miclus"`
10−make an XML node (Sail)
10+make a single XML node (Sail)
12## Produces
12## Produces
14−A noun that represents a single XML node.
14+A `marl`, i.e., a list of `manx`. A `manx` is a noun that represents a single XML node.
@@ -21,31 +21,45 @@ A noun that represents a single XML node.
24−`p` is a Hoon expression.
24+`p` is a Hoon expression that produces a `manx`.
26## Discussion
26## Discussion
28−This is a Sail rune. Sail is a part of Hoon used for creating and operating on nouns that represent XML nodes. Among other things it can be used to generate a static website using the appropriate render pipeline. See the [Sail tutorial](../../../../tutorial/sail).
28+tl;dr -- `;+` converts a `manx` to a `marl`.
30+`;+` is a Sail rune. Sail is a part of Hoon used for creating and operating on nouns that represent XML nodes. With the appropriate rendering pipeline, a Sail document can be used to generate a static website. See the [Sail tutorial](../../../../tutorial/sail).
30−In Sail you can produce a single `<p>` node very simply in the following way:
32+In Sail a single XML node is represented by a `manx`. A single `<p>` node `manx` can be produced in the following way:
33> ;p: This will be rendered as an XML node.
35> ;p: This will be rendered as an XML node.
34[[%p ~] [[%$ [%$ "This will be rendered as an XML node."] ~] ~] ~]
36[[%p ~] [[%$ [%$ "This will be rendered as an XML node."] ~] ~] ~]
39+Sometimes what is needed is a `marl`, i.e., a list of `manx`. To convert a single `manx` to a `marl`, use the `;+` rune.
37−One interesting thing about Sail is that it allows you to use complex Hoon expressions to choose from among several nodes to render. This is done with the `;+` rune.
41+One interesting thing about Sail is that it allows you to use complex Hoon expressions to choose from among several nodes to render. The `;+` rune can take such a complex expression.
39## Examples
43## Examples
42−> ;+ ?: (gth 3 2)
47+ ;+ ?: (gth 3 2)
43 ;p: This is the node for 'yes'.
48 ;p: This is the node for 'yes'.
44 ;p: This is the node for 'no'.
49 ;p: This is the node for 'no'.
45−[[[%p ~] [[%$ [%$ "This is the node for 'yes'."] ~] ~] ~] ~]
52+ c=[i=[g=[n=%$ a=~[[n=%$ v="This is the node for 'yes'."]]] c=~] t=~]
47−> ;+ ?: (gth 2 3)
57+ ;+ ?: (gth 2 3)
48 ;p: This is the node for 'yes'.
58 ;p: This is the node for 'yes'.
49 ;p: This is the node for 'no'.
59 ;p: This is the node for 'no'.
50−[[[%p ~] [[%$ [%$ "This is the node for 'no'."] ~] ~] ~] ~]
62+ c=[i=[g=[n=%$ a=~[[n=%$ v="This is the node for 'no'."]]] c=~] t=~]