GSP(1) Manual Page

  • Home
  • Back

  • GSP(1) General Commands Manual GSP(1)

    gspbetter syntax for HTML

    gsp [-d] [file ...]

    gsp is a utility to transpile gsp(5) 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 - is provided, then input will be read from the standard input.

    The options are as follows:

    Do not automatically generate a document type at the beginning of the document.

    The gsp utility exits 0 on success, and >0 if an error occurs.

    Compile the files head.gsp and tail.gsp into one HTML document:

    $ gsp head.gsp tail.gsp >out.html

    Expand m4(1) macros before transpiling:

    $ m4 foo.gsp | gsp

    Use your own document type instead of the HTML5 one:

    $ printf '%s%s' "$doctype" "$(gsp -d foo.gsp)"

    m4(1), sed(1), gsp(5)

    Thomas Voss <[email protected]>

    September 10, 2023 MangoOS