Beispiel #1
0
 /**
  * @param \Nette\ComponentModel\IContainer parent
  * @param string name
  */
 public function __construct(\Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->generatedFileNamePrefix = 'jsldr-';
     $this->generatedFileNameSuffix = '.js';
     $this->sourcePath = WWW_DIR . '/js';
     $this->sourceUri = $this->baseUrl . 'js/';
     $this->contentType = 'text/javascript';
 }
Beispiel #2
0
 /**
  * @param IContainer $parent
  * @param string $name
  */
 public function __construct(\Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->generatedFileNamePrefix = 'cssldr-';
     $this->generatedFileNameSuffix = '.css';
     $this->sourcePath = WWW_DIR . '/css';
     $this->sourceUri = $this->baseUrl . 'css/';
     $this->contentType = 'text/css';
     $this->preFileFilters[] = new Filters\BOMFilter();
     //		$this->preFileFilters[]=new Filters\ScssFilter;
     //		$this->preFileFilters[]=new Filters\LessFilter;
     $this->preFileFilters[] = new Filters\CCssFilter();
     //		$this->preFileFilters[]=new Filters\XCssFilter;
     $this->preFileFilters[] = new Filters\SassFilter();
     //		$this->fileFilters[]=new CssUrlsFilter;
     $this->fileFilters[] = new Filters\CssCharsetFilter();
 }