DomTemplate icon indicating copy to clipboard operation
DomTemplate copied to clipboard

Bind dynamic data to reusable HTML components.

Results 35 DomTemplate issues
Sort by recently updated
recently updated
newest added

Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.8.5 to 1.9.2. Release notes Sourced from phpstan/phpstan's releases. 1.9.2 Bugfixes 🐛 Fix array and iterable type action methods on NeverType (#1968), #8277, thanks @​herndlm! Support 'HasMethodType'...

dependencies

If we have a `custome-element.html`, why no `custom-element.php` with its own go function? A special case for the ServiceContainer could provide an HTMLElement already referencing the correct element. This is...

enhancement
question
feature

Binding a value that isn't `stringable` causes an error currently, and so it should. However, it would be nice to be able to register a callback to stringify a class,...

enhancement
feature

The docs specify that the bind callback must return the listItem, allowing you to manipulate the contents before it's used. This is true, but isn't enforced - meaning that if...

enhancement

I would like to be able to supply some hard-coded options in the select element that come after an option with data-template attribute. For example: ```html Make a payment for...

To make things nice and simple with nested lists, a new bind key can be used to specify which property of the bound object should be used for automatically binding...

There needs to be a documented way to bind a list within a list - the inner lists get the same auto-generated IDs.

Within HTML, there might be an element that contains lots of data-binds for, say, a User, and another element that contains lots of data-binds for an Order. The User's element...

enhancement

When `bindList` is used, if the list is empty, the template parent will have all whitespace stripped so that CSS sees it as `:empty`. This should be the case for...

enhancement

Consider this class: ```php class Product { public function __construct( public readonly string $name, public readonly Price $price, ) {} } ``` Binding the `name` property as usual: `` But...

enhancement