On Thu, Apr 24, 2008 at 11:24:54AM -0500, Patrick R. Michaud wrote: > So for consistency we should do the same for nested if's. In other > words, in the above nested if example could be written: > > (:if1 ... :) > ... > (:if2 ... :) > ... > (:elseif2 ... :) > ... > (:elseif1 ... :) > ... > (:if1end:) > > The "elseif1" clause would automatically imply closing the > nested "if2" part, so the author isn't required to write > the (:if2end:) (but it doesn't hurt to do so). > > This is such a fantastic and straightforward idea (thanks, Hans!) > that I'm now adopting this markup and approach as a PmWiki > CoreCandidate and planning to add it into the core. I will > probably try to do this today or over the weekend. Others are > welcome to implement something like it in recipes, but just be > aware that PmWiki should have its own implementation soon > so it may be best to avoid conflicts.
And I now have a test implementation available, at http://www.pmichaud.com/sandbox/nestedif/pmwiki.php . If people can do a few simple tests on this site to verify that (:if:) is working as we expect, I'll cut another beta release with the feature and start the process of moving 2.2.0 out of beta. Pm _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
