Water 5-Common Data Types-URI
method to_uri
Contract
Return typewob
Parameter keyDefault valueType
relative_toopt
rootopt
extension"htm"string
prefixopt
Water Contract
<method to_uri
  relative_to=opt
  root       =opt
  extension  ="htm"
  prefix     =opt/>
Takes any object and returns a URI that represents a path to the object. Takes an optional object that is the base object in which the path should be relative to. If relative_to is not passed in, it will return a URI that is absolute or that begins with a slash. By convention, a fluid variable named relative_to may be available. To use that variable, pass in the string: "fluid.relative_to" Returns a string including those parts of the uri that have their args true. The parameters of include_protocol, include_folder, include_name, include_extension all default to true. You can make as many false as you like. If include_protocol is the only true one, no :// will be included in the result. If include_container is the only true one, it WILL end with a slash. If include_name is the only true one, it will not have a slash on the beginning or end. If include_extension is the only true one, no dot prefix will be included in the result.