passover method documented
authortbrannon <tbrannon@devel.cybertechnologyllc.com>
Fri, 9 Jan 2009 19:05:07 +0000 (14:05 -0500)
committertbrannon <tbrannon@devel.cybertechnologyllc.com>
Fri, 9 Jan 2009 19:05:07 +0000 (14:05 -0500)
lib/HTML/Element/Library.pm

index 523c2111b8cc3987f0bf5a12000bf61dfd5666bd..03958537bf76139cf8f75e7c55edd43f1f39a9e7 100644 (file)
@@ -805,6 +805,14 @@ id C<under10> remains. For age less than 18, the node with id C<under18>
 remains.
 Otherwise our "else" condition fires and the child with id C<welcome> remains.
 
+=head3 $tree->passover($id_of_element)
+
+In some cases, you know exactly which element should survive. In this case,
+you can simply call C<passover> to remove it's siblings. For the HTML
+above, you could delete C<under10> and C<welcome> by simply calling:
+
+  $tree->passover('under18');
+
 =head3 $tree->highlander2($tree, $conditionals, @conditionals_args)
 
 Right around the same time that C<table2()> came into being, Seamstress
This page took 0.011115 seconds and 4 git commands to generate.