FOFTemplateUtils::addLESS
Compile a LESS file into CSS and add it to the page generated by the CMS.
This method has integrated cache support. The compiled LESS files will be written to the media/lib_fof/compiled directory of your site. If the file cannot be written we will use the $altPath, if specified
Signature
public function addLESS(string
$path,
[string
$altPath = null,
[boolean
$returnPath = false]] )
Parameters
-
$path
- A fancy path definition understood by parsePath pointing to the source LESS file
-
$altPath
- A fancy path definition understood by parsePath pointing to a precompiled CSS file,
-
$returnPath
- Return the URL of the generated CSS file but do not include it. If it can't be
Returns
- mixed
- True = successfully included generated CSS, False = the alternate CSS file was used, null = the source file does not exist