Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function CONTRACTPATH

Does the opposite of the function expandPath(). Tries to match given absolute path to the mappings in the enviroment. 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