static function mustache() { if (isset(self::$mustache)) { return self::$mustache; } return self::$mustache = new Mustache_Engine(array('cache' => APP_FILES_DIR . DS . 'Q' . DS . 'cache' . DS . 'mustache', 'loader' => new Q_Mustache_Loader(), 'partials_loader' => new Q_Mustache_Loader('partials'), 'escape' => function ($value) { return htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); })); }