-
-
Notifications
You must be signed in to change notification settings - Fork 3
Constructing DomTemplate objects
Greg Bowler edited this page Jan 30, 2023
·
3 revisions
DomTemplate is intended to be used from within PHP.Gt/WebEngine, where all objects are pre-initialised for the developer, but this section will explain how to manually construct the different objects that make up the repository, so you can use the features of DomTemplate in any non-WebEngine projects, or gain a better understanding of the inner workings.
PHP.Gt/DomTemplate is a separately maintained component of PHP.Gt/WebEngine.
- Bind data to HTML elements with
data-bindattributes - Bind key modifiers
- Inject data into HTML with
{{curly braces}} - Bind lists of data with
data-listattributes - Bind nested lists with
data-bind:list - Automatically remove unbound elements with
data-element - Bind tabular data into HTML tables
- Using objects to represent bindable data