static $localizedMessages = array();
    /**
     * @internal
     */
    static $pluginPathList = array();
    static function addPluginsRepository($path)
    {
        if (trim($path) == '') {
            return;
        }
        if (!file_exists($path)) {
            throw new Exception('The given path, ' . $path . ' doesn\'t exists');
        }
        if (substr($path, -1) != '/') {
            $path .= '/';
        }
        if ($handle = opendir($path)) {
            while (false !== ($f = readdir($handle))) {
                if ($f[0] != '.' && is_dir($path . $f)) {
                    self::$pluginPathList[$f][] = $path . $f . '/';
                }
            }
            closedir($handle);
        }
    }
}
jTplConfig::$cachePath = realpath(JTPL_PATH . 'temp/') . '/';
jTplConfig::$localizedMessagesPath = realpath(JTPL_PATH . 'locales/') . '/';
jTplConfig::$templatePath = realpath(JTPL_PATH . 'templates/') . '/';
jTplConfig::addPluginsRepository(realpath(JTPL_PATH . 'plugins/'));
include JTPL_PATH . 'jTpl.class.php';