A PHP templating engine is used to separate the presentation of a web page from its business logic. It provides a reusable structure for outputting HTML and allows developers to easily manage complex code.
One of the most notable features of Templum is its speed. It enables the rendering of templates at lightning speed, which closely approximates the native PHP rendering speed for include() statements.
The Templum template syntax is very user-friendly, with several features to enhance usability. The syntax uses accolades {{ and }} to echo variables or other PHP printables, which is automatically escaped using htmlentities() (can be turned off). The syntax also employs double square brackets [[ and ]] to start a PHP code block, and @line to interpret a line starting with an at-sign as a line of PHP code.
Overall, Templum offers an excellent PHP templating solution that is ideal for any developer looking for a fast, powerful, yet simple and lightweight templating engine.
Version 0.4.0: N/A