Native PHP template system
render()
method to Engine
class, improving the use of the Engine
as the primary API.$this
pseudo-variable.getFunctions()
method with new register()
method.section()
function instead.end()
function to stop()
. This fits more appropriately with the start()
function.get()
function to fetch()
.pathExists()
method in the Engine
class to exists()
.getTemplatePath()
method in the Engine
class to path()
.makeTemplate()
method in the Engine
class to make()
.Template
class. For example: $this->name = 'Jonathan'
. This applies both within and outside of templates. Use the data()
method instead.getEngine()
method from the Template
class. There's no reason to need this anymore.addFolders()
method from the Engine()
class.unloadExtension()
and unloadExtensionFunction()
methods from the Engine()
class.insert()
functionality has been moved to a new extension, called Nest.get()
function was also added with this extension, which offers an alternative syntax for nesting templates.render()
function from within templates themselves. If this functionally is required, use the nesting functions instead.content()
function when calling it from a non layout template.batch()
extension function when a provided function does not exist.unloadExtension()
and unloadExtensionFunction()
methods to the Engine()
class.getEngine()
method to the Template
class.addFolders()
and loadExtensions()
methods to the Engine()
class.insert()
method.php-loep
to thephpleague
).makeTemplate()
template factory method.pathExists()
method to check if a template exists.