File modules/util/Less.class.php
Last commit: Sat Sep 26 01:41:20 2020 +0200 Jan Dankert Refactoring: Removing old require.php files. With class autoloading, they are not necessary any more.
1 <?php 2 3 4 namespace util; 5 6 require __DIR__.'/Less.php'; 7 8 /** 9 * Wrapper for 3rd-party Less parser. 10 */ 11 class Less 12 { 13 14 private $less; 15 16 17 public function __construct( $var ) 18 { 19 $this->less = new \Less_Parser( $var ); 20 } 21 22 23 public function parse( $str, $file_uri = null ) 24 { 25 $this->less->parse($str, $file_uri); 26 } 27 public function parseFile( $filename, $uri_root = '', $returnRoot = false ) 28 { 29 $this->less->parseFile( $filename, $uri_root, $returnRoot ); 30 } 31 public function ModifyVars( $var ) 32 { 33 $this->less->ModifyVars($var ); 34 } 35 public function getCss() 36 { 37 return $this->less->getCss(); 38 } 39 40 }
Downloadmodules/util/Less.class.php
History Sat, 26 Sep 2020 01:41:20 +0200 Jan Dankert Refactoring: Removing old require.php files. With class autoloading, they are not necessary any more.