public static function add_template_path($path)
    {
        if (!isset(self::$template_path) || empty(self::$template_path)) {
            self::init_template_paths();
        }
        if ($path[0] != '/') {
            $path = BASE_PATH . '/' . $path;
        }
        self::$template_path[] = rtrim($path, '/');
    }