| GSP(1) | General Commands Manual | GSP(1) |
NAME
gsp —
HTML-compatible markup language
SYNOPSIS
gsp |
[-cd] [-I
dirname] [file ...] |
gsp |
-h |
DESCRIPTION
This manual documents the gsp cli tool.
For documentation regarding the GSP language itself, see the
SEE ALSO section of this manual.
gsp is a utility to transpile
gsp(7) formatted documents into valid
HTML. Files provided as command-line arguments are transpiled with the
results written to the standard output. If no arguments or the special
filename ‘-’ is provided, then input
will be read from the standard input.
The options are as follows:
-c- Transliterate GSP comments into HTML comments. The default behaviour is to drop comments.
-d- Do not automatically generate a doctype declaration at the beginning of the document.
-h- Display help information by opening this manual page.
-Idirname- Add dirname to the macro search path. By default the macro search path is empty.
EXIT STATUS
The gsp utility exits 0 on success,
and >0 if an error occurs.
EXAMPLES
Compile the files head.gsp and tail.gsp into one HTML document:
$ gsp head.gsp tail.gsp
>out.htmlUse your own document type instead of the HTML5 one:
$ { printf '%s' "$doctype";
gsp -d index.gsp; } >index.htmlSEE ALSO
AUTHORS
Thomas Voss <mail@thomasvoss.com>
| May 5, 2026 | GSP 4.2 |