18.4.0 released Sep 25, 2023
P path

Purpose: Outputs URL application path.

p-path [ bytes-written [ define ] <bytes written>

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

If no "--path" option in vv 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.

If "bytes-written" clause is used, then the number of bytes output will be in <bytes written>, which can be created with an optional "define".
Examples
Create URL in web link:
@<a href="<<p-path>>/add-note">Add Note</a>

In HTML forms:
...
<form action="<<p-path>>/add-note" method="POST" enctype="multipart/form-data">
...

See also
Output
finish-output  
flush-output  
output-statement  
p-dbl  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-url  
p-web    
See all
documentation


You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a link back to this page (dofollow) - see full license at CC-BY-4.0. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind.