Allen Gilliland wrote:
Something like ...
<ul class="archive">
#foreach( $month in $weblog.getListOfArchiveMonths() )
<li class="archiveItem">$month</li>
#end
</ul>
This is a *much* more flexible approach than telling people to just do
this ...
#showListOfArchiveMonths()
I can also sympathize with the desire to have the basic
templates included with Roller be constructed out of a small
number of very simple macros. With no programming embedded
in them.
So I would favor the approach of adding basic functionality
by exposing data structures, as Allen suggests, and also
retaining a small set of "wrapper" functions that output
HTML is a simple format.
The goal is that when someone sees a simple macro call
and wants a slightly different version we can respond
with "here is the data to build it yourself, and here
is how that convenience macro is implemented".
just my .02
--chris