--- "Patrick R. Michaud" <[EMAIL PROTECTED]> wrote:
> > While it would be less efficient a simple solution
> > might be to limit the count during the template
> > processing instead by simply not counting any
> > iterations that don't produce any output,
> 
> PmWiki doesn't run the markup engine on each
> iteration -- it concatenates all of the iterations 
> together into a single markup string, and then runs 
> the markup engine on the concatenated result.  

Drats, foiled again! :)

What if the templating engine put a special markup
around each iteration like this:

(:iteration:)
...
(:iteration:)
...
(:iterationend:)

This markup would basically mean: "if the section
after this is not blank, increment internal counter
and if the counter is not within the paging range,
delete everything up until the next (:iteration:). 
This would not require any thought on the user's part
in the template, the pagelist count would just
magically work! :)

-Martin



       
____________________________________________________________________________________Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to