Lucee Function Reference
contractpath()
Does the opposite of the function expandPath(). Tries to match given absolute path to the mappings in the environment. When no mappings match, lucee creates a relative path from the current position.
Example
contractpath(string path,[boolean placeholder]):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
path | string | Yes | a absolute path |
placeholder | boolean | No | If true (default false), Lucee also tries to create a placeholder for the begining of the Tag |