Greg Bowler
Greg Bowler
This is a _nice to have_ feature. How many times have you written something like `0`, just to realise the number comes out as `12345` when really you want it...
```html 0,000 ``` ```php function go(Binder $binder):void { $binder->bindKeyValue("overweight", true); $binder->bindKeyValue("oversize", true); } ``` The above HTML only binds the overweight class, not the oversize. There's no reason this shouldn't...
Currently there is an optional `$context` parameter to bind functions. Whenever I use this parameter, I always do `$binder->bindList($listOfStuff, $document->querySelector("select[name='thing']");` to bind a list of stuff into a select element...
I like the DRY principal of using `data-bind:value="@name"` for binding the value of input elements, but I find "@name" is a bit confusing when explaining it to people for the...
There's already an [inverse boolean modifier](https://github.com/PhpGt/DomTemplate/wiki/modifier-characters#inverse-boolean-modifier-), so I would like to see an inverse token modifier, so I can toggle a class if a parameter is FALSE rather than TRUE....
An `ArrayObject` as a public property of an object is not binding its values to the `data-list` elements. Is this because `ArrayObject` is not being seen as an `iterable`?
Regarding this functionality: https://github.com/PhpGt/DomTemplate/wiki/modifier-characters#inverse-boolean-modifier- I just struggled implementing it. It didn't seem to do what I thought it would - it would be worth adding some more tests for this.
The `$context` parameter of bind functions would be enhanced if it would also accept a string: the query selector of the context node. That would mean you wouldn't necessarily need...
PHPCS, PHPMD and a build matrix should be introduced.
This should throw an exception at the point of binding - if there are two named list items with the same name within the same scope, this will cause hours...