]> iEval git - html-element-library.git/blobdiff - lib/HTML/Element/Library.pm
passover method documented
[html-element-library.git] / 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.023389 seconds and 4 git commands to generate.