This repository was archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lukas Jans edited this page Feb 21, 2019
·
4 revisions
It achives this by replacing sequences in a predefined template with dynamic values. Like in HTML, these sequences are called tags. They can stand for themselves or form sections in pairs. The process of replacing tags and sections in a template with real data is called rendering.
When imported, the class Elements provides a renderer. You can invoke it with a template and your data. The return value is the rendered template.
static render ( string template , mixed data ) : string
Learn how rendering works in detail by reading the articles listed in the table of contents.