public static function templateFactory(Core $core, $resourceId, $cacheTime = null, $cacheId = null,
                                           $compileId = null, ITemplate $parentTemplate = null)
    {
        return new self($resourceId, $cacheTime, $cacheId, $compileId);
    }
public static function templateFactory(Core $core, $resourceId, $cacheTime = null, $cacheId = null,
                                           $compileId = null, ITemplate $parentTemplate = null)
    {
        return new self($resourceId, $cacheTime, $cacheId, $compileId);
    }
public static function templateFactory ( Core $ core , $ resourceId , $ cacheTime = null , $ cacheId = null , $ compileId = null , ITemplate $ parentTemplate = null ) { return new self ( $ resourceId , $ cacheTime , $ cacheId , $ compileId ) ; }
Returns a new template string object with the resource id being the template source code.

@param Core      $core           the dwoo instance requiring it
@param mixed     $resourceId     the filename (relative to this template's dir) of the template to include
@param int       $cacheTime      duration of the cache validity for this template, if null it defaults to the
Dwoo instance that will render this template if null it defaults to the Dwoo
instance that will render this template
@param string    $cacheId        the unique cache identifier of this page or anything else that makes this
template's content unique, if null it defaults to the current url makes this
template's content unique, if null it defaults to the current url
@param string    $compileId      the unique compiled identifier, which is used to distinguish this template from
others, if null it defaults to the filename+bits of the path template from
others, if null it defaults to the filename+bits of the path
@param ITemplate $parentTemplate the template that is requesting a new template object (through an include,
extends or any other plugin) an include, extends or any other plugin)

@return $this
Returns a new template string object with the resource id being the template source code .