Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion includes/haml/HamlParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down