Download the PHP package sitepoint/templating-engine without Composer
On this page you can find all versions of the php package sitepoint/templating-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sitepoint/templating-engine
More information about sitepoint/templating-engine
Files in sitepoint/templating-engine
Package templating-engine
Short Description A simple, easy to follow PHP templating engine
License MIT
Homepage https://github.com/sitepoint/TemplatingEngine
Informations about the package templating-engine
Templating Engine
A simple, easy to follow PHP templating engine. Designed to be forked, modified, extended and hacked.
Example Usage
This templating engine supports inheritance through blocks. Child templates declare blocks which can be overridden, extended and displayed by parent templates.
Child templates can declare a single parent template at any point using the parent()
method which also provides the opportunity to modify the variables that are in scope.
All templates must follow the namespace::path/to/template
format.
Namespaces and function callbacks are registered with the templating engine when it is constructed. Function callbacks are available as methods within the template context and must be callable
.
The default template extension is phtml
, but this can be overridden.
Template Context Methods
The following methods are available by default within the template context.
Authors
Change Log
This project maintains a change log file
License
The MIT License (MIT). Please see LICENSE for more information.