With this extension, you can use Less CSS files with registerCSSFile.
The code is based on zsoltlengyelits, LessCSS-for-Yii extension. I've updated it so,
Yii 1.1 or above
Copy the folder to your extension folder (protected/extensions).
'components' => array( 'clientScript' => array( 'class' => 'ext.LessClientscript.LClientscript', 'caching' => true, //use the cached css file if available 'compress' => false, //remove whitespace and linearize to 1 line ) );
Now you can add it in your view or controller:
V1.02 - Store temporary less file in runtime folder - Fixed bug where if you provided a file with no css in it, it could not find the assets file
V1.01 - Better commenting - Return clientscript object for chaining - Refactoring