aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-10 15:30:25 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-10 15:30:25 +0200
commitd361a0e455e4d9aeea18a949ef66bebd86786fdd (patch)
tree4e7f347740fbce2a13407066d39b0945be10f95f
parentc7da869a8b601332f042f636e4a88d76e153c2c8 (diff)
Update manual with XML information
-rw-r--r--gsp.117
1 files changed, 13 insertions, 4 deletions
diff --git a/gsp.1 b/gsp.1
index d0d4124..495b5f5 100644
--- a/gsp.1
+++ b/gsp.1
@@ -3,20 +3,29 @@
.Os
.Sh NAME
.Nm gsp
-.Nd better syntax for HTML
+.Nd better syntax for HTML and XML
.Sh SYNOPSIS
.Nm
.Op Ar
.Sh DESCRIPTION
.Nm
-is a utility to transpile a
+is a utility to transpile
.Xr gsp 5
-formatted plain\-text file into valid HTML.
+formatted plain\-text files into valid HTML and XML.
Files provided as command\-line arguments will be transpiled with the result
being written to the standard output.
If no arguments or the special filename
.Pa -
is provided, then input will be read from the standard input.
+.Pp
+By default files are transpiled to HTML, where tags with no children take the
+form of
+.Ql <tag>
+as opposed to XML where they take the form of
+.Ql <tag/> .
+If the document begins with an XML document type, then
+.Nm
+will transpile to XML.
.Sh EXIT STATUS
.Ex -std gsp
.Sh EXAMPLES
@@ -30,7 +39,7 @@ into one HTML document:
.Pp
Expand
.Xr m4 1
-macros before transpiling to HTML:
+macros before transpiling:
.Pp
.Dl $ m4 foo.gsp | gsp
.Sh SEE ALSO