\Compass
Synopsis
class Compass
extends Controller
{
- // members
- public static array $url_handlers = ;
- public static bool $errors_are_errors = NULL;
- public static bool $force_no_rebuild = false;
- public static string $sass_version = '3';
- public static string $syntax = "scss";
- public static array $required_gems = ;
- private static bool $check_gems_result = NULL;
- private static $temp_dir;
- // methods
- protected void checkGems()
- public static void error()
- public void init()
- public void convert()
- protected void recursivelyConvert()
- protected array getAllThemes()
- protected array getAllModules()
- public void rebuild()
- protected void rebuildDirectory()
- public void updategems()
- protected void generate_config()
- public static void set_temp_dir()
- public static string get_temp_dir()
Hierarchy
Extends
- Controller
Members
private
- $check_gems_result — bool
- $temp_dir
—
string
Directory to store sass cache. Defaults to temp_folder/.sass.
public
Methods
protected
- checkGems()
- generate_config() — Generate a configuration file for a given directory
- getAllModules() — Utility function that returns an array of all modules.
- getAllThemes() — Utility function that returns an array of all themes.
- rebuildDirectory() — Rebuild the scss files from a given directory
- recursivelyConvert()
public
- convert() — Convert a css based theme to a sass based one
- error()
- get_temp_dir() — Return the temp directory for storing the sass cache. Path should be writable by the web server.
- init()
- rebuild() — Convert the sass files to css files
- set_temp_dir() — Set the temp directory for storing the compass cache. Path should be a folder to filesystem which is writable by the web server.
- updategems() — Make sure the compass and sass gems are up to date.