forked from janmarek/WebLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
pesektomas/WebLoader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
WebLoader ========= Component for CSS and JS files loading Author: Jan Marek Licence: MIT Example: <?php // presenter factory in nette protected function createComponentCss() { $files = new WebLoader\FileCollection(WWW_DIR . '/css'); $files->addFiles(array( 'style.css', WWW_DIR . '/colorbox/colorbox.css', )); $compiler = WebLoader\Compiler::createCssCompiler($files, WWW_DIR . '/temp'); $compiler->addFilter(new WebLoader\Filter\VariablesFilter(array('foo' => 'bar')); $compiler->addFilter(function ($code) { return cssmin::minify($code, "remove-last-semicolon"); }); $control = new WebLoader\Nette\CssLoader($compiler, '/webtemp'); $control->setMedia('screen'); return $control; } Template: {control css}
About
Komponenta pro Nette Framework načítající skripty a styly
Resources
Stars
Watchers
Forks
Packages 0
No packages published