Kohana 3.3 SCSS Module to compile Scss files to css with scssphp compiler
-
Put the scss module folder in your Modules directory
-
Include scss module in your application's bootstrap: 'scss' => MODPATH.'scss'
-
Copy the scss config file from /modules/scss/config/scss.php to your application's config directory
-
Configure scss config file
-
Install dependencies via composer
cd modules/scss && composer.phar install
or download the scssphp and CssMin libraries into scss/vendor path.
Add this code to html head in view file:
<head>
<title>Kohana SCSS</title>
<?php echo Scss::render('test'); ?>
</head>
or you can send an array of files
<head>
<title>Kohana SCSS</title>
<?php echo Scss::render(array(
'test', 'test2'
)); ?>
</head>