codegooglecom / querytemplates

Automatically exported from code.google.com/p/querytemplates
0 stars 0 forks source link

valuesToLoop #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Static loop support.

$t['>ul > li']->valuesToLoop($d, function($row, $li1) {
    $node->valuesToSelector($row['User'], 'span.%k')->
        find('> ul')->
            valuesToLoop($row['Tags'], function($tag, $li2) {
                $li2->valuesToSelector($tag);
            })
    ;
});

Original issue reported on code.google.com by tobiasz....@gmail.com on 24 Feb 2009 at 10:37

GoogleCodeExporter commented 9 years ago
Fixed before r116.

Original comment by tobiasz....@gmail.com on 26 Feb 2009 at 10:42