Provided by: golf_601.4.41-1_amd64 bug

NAME

       print-path -  (output)

PURPOSE

       Print out URL that leads to a request handler.

SYNTAX

           print-path <request path> [ new-line ]

DESCRIPTION

       print-path  outputs  URL  application  path of a URL that called this request handler, followed by string
       <request path>.

       If no "--path" option in gg is used to specify URL application path, then it is the same  as  application
       name prepended with a forward slash, followed by "/<request path>":

           /<app name>/<request path>

       print-path  is  used  in construction of URLs or HTML forms (either for HTML or API) to refer back to the
       same application. Use it to create the absolute URL path to refer back to a service of yours so  you  can
       issue requests to it.

       For example, this is a link that specifies request to service "/show-notes":

           @<a href="<<print-path "/show-notes">>?date=yesterday">Show Notes</a>

       If you are building HTML forms, you can add a note with:

           @<form action='<<print-path "/add-note">>' method="POST">
           @<input type="text" name="note" value="">
           @</form>

       See request for more on URL structure.

       If "new-line" clause is used, then a new line ("\n") is output after the URL path.

SEE ALSO

        Output

       finish-output flush-output output-statement print-format print-out print-path See all documentation

$DATE                                               $VERSION                                           GOLF(2gg)