Skip to content

Commit

Permalink
added WebLoader dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
juzna committed Jul 31, 2012
1 parent 9906d0e commit bf163f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/config/config.neon
Expand Up @@ -28,6 +28,7 @@ common:

services:
authenticator: Authenticator
cssLoader: WebLoader\Nette\CssLoader::createLoader("%wwwDir%/css", "%wwwDir%/temp", [ "screen.css" ])


factories:
Expand Down
5 changes: 4 additions & 1 deletion app/presenters/BasePresenter.php
Expand Up @@ -5,5 +5,8 @@
*/
abstract class BasePresenter extends Nette\Application\UI\Presenter
{

protected function createComponentCss()
{
return $this->context->cssLoader;
}
}
3 changes: 3 additions & 0 deletions app/templates/@layout.latte
Expand Up @@ -16,8 +16,11 @@

<title>{block title|striptags|upper}Nette Application Skeleton{/block}</title>

{control css}
{*
<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/screen.css" type="text/css">
<link rel="stylesheet" media="print" href="{$basePath}/css/print.css" type="text/css">
*}
<link rel="shortcut icon" href="{$basePath}/favicon.ico" type="image/x-icon">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -19,6 +19,7 @@
},
"require": {
"php": ">= 5.3.0",
"nette/nette": ">= 2.0.4"
"nette/nette": ">= 2.0.4",
"JanMarek/WebLoader": "*"
}
}

0 comments on commit bf163f5

Please sign in to comment.