public function initTwig()
    {
        if ($this->twig) return;

        // initialize twig
        Twig_Autoloader::register();
        $this->twig = new Twig_Environment();
        
        $loader = new Twig_Loader_Filesystem(dirname($this->path));
        $this->twig->setLoader($loader);
    }