components/LessClientCompiler.php
public function run()
	{
		$settings = array(
			'env' => $this->env,
			'async' => $this->async,
			'fileAsync' => $this->fileAsync,
			'poll' => $this->poll,
			'relativeUrls' => $this->relativeUrls,
			'rootpath' => $this->rootPath,
		);

		$app = Yii::app();
		/* @var $cs CClientScript */
		$cs = $app->getClientScript();
		foreach (array_keys($this->files) as $lessFile)
			$cs->registerLinkTag('stylesheet/less', 'text/css', $app->baseUrl . '/' . $lessFile);
		$cs->registerScript(__CLASS__ . '.settings', 'less = ' . CJSON::encode($settings) . ';', CClientScript::POS_HEAD);
		$cs->registerScriptFile($this->getAssetsUrl().'/less.min.js', CClientScript::POS_END);

		if ($this->watch)
			$cs->registerScript(__CLASS__ . '.watch', 'less.watch();', CClientScript::POS_END);
	}
public function run()
	{
		$settings = array(
			'env' => $this->env,
			'async' => $this->async,
			'fileAsync' => $this->fileAsync,
			'poll' => $this->poll,
			'relativeUrls' => $this->relativeUrls,
			'rootpath' => $this->rootPath,
		);

		$app = Yii::app();
		/* @var $cs CClientScript */
		$cs = $app->getClientScript();
		foreach (array_keys($this->files) as $lessFile)
			$cs->registerLinkTag('stylesheet/less', 'text/css', $app->baseUrl . '/' . $lessFile);
		$cs->registerScript(__CLASS__ . '.settings', 'less = ' . CJSON::encode($settings) . ';', CClientScript::POS_HEAD);
		$cs->registerScriptFile($this->getAssetsUrl().'/less.min.js', CClientScript::POS_END);

		if ($this->watch)
			$cs->registerScript(__CLASS__ . '.watch', 'less.watch();', CClientScript::POS_END);
	}
Runs the compiler.
@throws CException if an error occurred.