forked from janmarek/WebLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Aurielle/WebLoader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
WebLoader ========= Komponenta pro načítání CSS a JS souborů Autor: Jan Marek Licence: MIT Použití ------- Presenter: <?php use WebLoader\JavaScriptLoader; use WebLoader\VariablesFilter; use WebLoader\CssLoader; abstract class BasePresenter extends Presenter { protected function createComponentJs() { $js = new JavaScriptLoader; $js->tempUri = Environment::getVariable("baseUri") . "data/webtemp"; $js->tempPath = WWW_DIR . "/data/webtemp"; $js->sourcePath = WWW_DIR . "/js"; $js->filters[] = new VariablesFilter(array( // texyla "baseUri" => Environment::getVariable("baseUri"), "texylaPreviewPath" => $this->link(":Texyla:preview"), "texylaFilesPath" => $this->link(":Texyla:listFiles"), "texylaFilesUploadPath" => $this->link(":Texyla:upload"), )); return $js; } protected function createComponentCss() { $css = new CssLoader; $css->sourcePath = WWW_DIR . "/css"; $css->tempUri = Environment::getVariable("baseUri") . "data/webtemp"; $css->tempPath = WWW_DIR . "/data/webtemp"; $css->filters[] = function ($code) { return cssmin::minify($code, "remove-last-semicolon"); }; return $css; } } ?> Šablona: {widget js 'jquery.js', 'texyla.js', 'web.js'} {widget css 'reset.css', 'page.css', 'libs/texyla.css', 'libs/jqueryui.css'}
About
Komponenta pro Nette Framework načítající skripty a styly
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%