PHP code example of rackem / sass

1. Go to this page and download the library: Download rackem/sass library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rackem / sass example snippets



# config.php

// Rack up the middleware and you are good to go!
\Rackem::use_middleware(new \Rackem\Sass());


// or map to a specific path
\Rackem::map("/css", function($env) {
	$sass = new \Rackem\Sass\Environment();
	$sass->append_path("src/sass");

	return $sass->call($env);
});