diff --git a/includes/haml/HamlParser.class.php b/includes/haml/HamlParser.class.php index ad30c27..2cdd873 100644 --- a/includes/haml/HamlParser.class.php +++ b/includes/haml/HamlParser.class.php @@ -183,6 +183,13 @@ public function __construct($sPath = false, $bCompile = true, $oParent = null, $ */ protected static $otc = false; + /** + * Register Sass or not + * + * @var boolean + */ + public static $bRegisterSass = true; + /** * One time constructor. Register Textile block * if exists Textile class and Markdown block if @@ -205,7 +212,7 @@ protected static function __otc() */ protected static function tryRegisterSass() { - if (file_exists($f = dirname(__FILE__) . '/../sass/SassParser.class.php')) + if (self::$bRegisterSass && file_exists($f = dirname(__FILE__) . '/../sass/SassParser.class.php')) require_once $f; else return false;