Beispiel #1
0
 /**
  * One time constructor. Register Textile block
  * if exists Textile class and Markdown block if
  * exists Markdown functions
  */
 protected static function __otc()
 {
     self::$otc = true;
     if (class_exists('Textile', false)) {
         self::registerBlock(array(new Textile(), 'TextileThis'), 'textile');
     }
     if (function_exists('Markdown')) {
         self::registerBlock('Markdown', 'markdown');
     }
     self::tryRegisterSass();
 }