P path

Purpose: Outputs URL application path.

 p-path [ new-line ]

p-path outputs a URL application path (see request), i.e. the leading path segment(s) prior to request name.

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:
/<app name>

p-path provides the leading part of a URL path after which request name and its parameters can be specified. It is used in HTML forms and URLs (either for HTML or API) to refer back to the same application.

Use p-path to create the absolute URL path to refer back to your service so you can issue requests to it.

For example, this is a link that specifies request to service "show-notes":
@<a href="<<p-path>>/show-notes?date=yesterday">Show Notes</a>

If you are building HTML forms, you can add a note with:
@<form action="<<p-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 path.
See also
Output
finish-output  
flush-output  
output-statement  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-url  
p-web  
See all
documentation


Copyright (c) 2019-2024 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.