aboutsummaryrefslogtreecommitdiff
path: root/gsp.1
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-10 20:19:26 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-10 20:20:00 +0200
commitadb23b20e8d2f360e9b20499bff10734890810ac (patch)
tree916aba7b040755d1e5cab033049f55e037ccf1b1 /gsp.1
parent7eac3c24255a86257d42ab38668cbd88dc96f55b (diff)
Remove all XML support
Diffstat (limited to 'gsp.1')
-rw-r--r--gsp.127
1 files changed, 10 insertions, 17 deletions
diff --git a/gsp.1 b/gsp.1
index 82bb9f4..a54744f 100644
--- a/gsp.1
+++ b/gsp.1
@@ -3,37 +3,26 @@
.Os
.Sh NAME
.Nm gsp
-.Nd better syntax for HTML and XML
+.Nd better syntax for HTML
.Sh SYNOPSIS
.Nm
-.Op Fl x
+.Op Fl d
.Op Ar
.Sh DESCRIPTION
.Nm
is a utility to transpile
.Xr gsp 5
-formatted plain\-text files into valid HTML and XML.
-Files provided as command\-line arguments will be transpiled with the result
+formatted plain-text files into valid HTML.
+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 or the
-.Fl x
-flag is specified, then
-.Nm
-will transpile to XML.
-.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl x
-Transpile to XML instead of HTML.
+.It Fl d
+Do not automatically generate a document type at the beginning of the document.
.El
.Sh EXIT STATUS
.Ex -std gsp
@@ -51,6 +40,10 @@ Expand
macros before transpiling:
.Pp
.Dl $ m4 foo.gsp | gsp
+.Pp
+Use your own document type instead of the HTML5 one:
+.Pp
+.Dl $ printf \(aq%s%s\(aq \(dq$doctype\(dq \(dq$(gsp -d foo.gsp)\(dq
.Sh SEE ALSO
.Xr m4 1 ,
.Xr sed 1 ,