📄️ Data
It's very common to share application data (variables) with a template. Data can be whatever you want: strings, arrays,
📄️ Escaping
Escaping is a form of data filtering which sanitizes unsafe, user
📄️ Functions
Template functions in Plates are accessed using the $this pseudo-variable.
📄️ Templates
Plates templates are very simple PHP objects. Generally you'll want to create these using the two factory methods, make() and render(), in the engine. For example:
📄️ Inheritance
By combining layouts and sections, Plates allows you to "build up" your pages using predefined sections. This is best understand using an example:
📄️ Layouts
The layout() function allows you to define a layout template that a template will implement. It's like having separate
📄️ Nesting
Including another template into the current template is done using the insert() function:
📄️ Sections
The start() and stop functions allow you to build sections (or blocks) of content within your template, and instead
📄️ Syntax
While the actual syntax you use in your templates is entirely your choice (it's just PHP after all), we suggest the