first of all, please receive here my high appreciations for the way made things simpler.
Looking (again) for view templating using the DOM, I found your great article about the matter. After reading it, I downloaded the DOMTemplate and began to make some experiences [...]
I would like to use the repeat functionality to create complex data structure (may be You know how Repeaters works in the wicket Web Framework) .
For example fill a whole table using following template:
% <table id="table"> <thead> <th class="hrow"> <td class="cell"></td> </th> </thead> <tbody> <tr class="brow"> <td class="cell"></td> </tr> </tbody> </table> %
(1) select row template (header/body/footer)
% $rows = $template->repeat(".hrow|.brow|.frow") %
(2) iterate custom data to create rows
% [...] $rows->next() %
Q: how to create cells in different context ?
Using for example
% $cells = $template->repeat(".brow, .cell") %
inside my iteration doesn't produce expected results.
I hope You understand my problem.