Ok, I had a practical need for this method, and I think the API I have is quite useable... here is the POD for what I plan to upload soon:
=head3 $elem->hash_map(hash => \%h, to_attr => $attr, excluding => \...@excluded) This method is designed to take a hashref and populate a series of elements. For example: <table> <tr sclass="tr" class="alt" align="left" valign="top"> <td sid="people_id">1</td> <td sid="phone">(877) 255-3239</td> <td sid="password">*********</td> </tr> </table> In the table above, there are several attributes named C<sid>. If we have a hashref whose keys are the same: my %data = (people_id => 888, phone => '444-4444', password => 'dont-you-dare-render'); Then a single API call allows us to populate the HTML while excluding those ones we dont: $tree->hash_map(hash => \%data, to_attr => 'sid', excluding => ['password']); Of course, the other way to prevent rendering some of the hash mapping is to not give that element the attr you plan to use for hash mapping. http://github.com/metaperl/html-element-library/commit/9b7a5679d7b975da7cb52f34503d1d8b4e174f3b ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ seamstress-discuss mailing list seamstress-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/seamstress-discuss