private function lessc::import in Less CSS Preprocessor 6
Same name and namespace in other branches
- 6.3 lessphp/lessc.inc.php \lessc::import()
File
- ./
lessc.inc.php, line 325
Class
Code
private function import(&$url, &$media) {
$this
->literal('@import');
$save = $this->count;
try {
// todo: merge this with the keyword url('')
$this
->literal('url(')
->string($url)
->literal(')');
} catch (exception $ex) {
$this->count = $save;
$this
->string($url);
}
$this
->to(';', $media);
return $this;
}