Changeset View
Changeset View
Standalone View
Standalone View
contrib/libxo/libxo/xo_open_container.3
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | |||||
For TEXT and HTML output, containers are not rendered into output | For TEXT and HTML output, containers are not rendered into output | ||||
text, though for HTML they are used when the | text, though for HTML they are used when the | ||||
.Dv XOF_XPATH | .Dv XOF_XPATH | ||||
flag is set. | flag is set. | ||||
.Pp | .Pp | ||||
.Bd -literal -offset indent -compact | .Bd -literal -offset indent -compact | ||||
EXAMPLE: | EXAMPLE: | ||||
xo_open_container("system"); | xo_open_container("system"); | ||||
xo_emit("The host name is {:host-name}\n", hn); | xo_emit("The host name is {:host-name}\\n", hn); | ||||
xo_close_container("system"); | xo_close_container("system"); | ||||
XML: | XML: | ||||
<system><host-name>foo</host-name></system> | <system><host-name>foo</host-name></system> | ||||
.Ed | .Ed | ||||
.Sh DTRT MODE | .Sh DTRT MODE | ||||
Some users may find tracking the names of open containers, lists, and | Some users may find tracking the names of open containers, lists, and | ||||
instances inconvenient. | instances inconvenient. | ||||
.Nm libxo | .Nm libxo | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |