To extract the values provided for the {folderpath} and {verbose} tokens, your Folder Listing controller script uses the following JavaScript:
... var verbose = (args.verbose == "true" ? true : false); var folderpath ...
The url.templateArgs root object is another special object provided by the Web Script Framework. It represents a map of all values provided for tokens in the URI path, indexed by token name. In this case, the controller script is extracting the value for the folderpath token. URI-path values are never null.
Imagine a client has made the following URI request: /dir/Company%20Home?verbose=true
The resulting value of verbose is true and the value of folderpath is Company Home.