public function factory($path, Engine $engine, $class = null)
    {
        $template = $this->factory->factory($path, $engine, $class);
        $this->stack->push($template);

        return $template;
    }