Hello, guys, I'm trying to lower size of my css files so i require base css files inside Page.ss and special ones (depended from displaying page) in Page Layout files, but styles from the layouts's files are included upper then from Page.ss
I'm getting this:
..
<link rel="stylesheet" type="text/css" href="**/searchResults.css" />
<link rel="stylesheet" type="text/css" href="**/layout.css" />
<link rel="stylesheet" type="text/css" href="**/typography.css" />
<link rel="stylesheet" type="text/css" href="**/form.css" />
..
And this is my source code:
Page_Controller:
public function results($data, $form){
...
return $this->customise($data)->renderWith(array('Page_results', 'Page'));
}
Page.ss
..
<head>
..
<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>
..
</head>
<body>
..
$Layout
..
</body>
..
Page_Results.ss
..
<% require themedCSS(searchResults) %>
..