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

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

        return $template;
    }
public function factory ( $ path , Engine $ engine , $ class = null ) { $ template = $ this -> factory -> factory ( $ path , $ engine , $ class ) ; $ this -> stack -> push ( $ template ) ; return $ template ; }
Factory a template using template helper function and push it to the templates stack

@param  string                            $path   Template file full path
@param  \Foil\Engine                      $engine
@param  string                            $class  Custom template class
@return \Foil\Contracts\TemplateInterface
Factory a template using template helper function and push it to the templates stack