Do you think you can do that in tables?
Out of all, I don't think H::T should produce logical data. It only
provides a way (or some ways) to let perl program to produce dynamic data.
So it has data abstraction such as VAR and LOOP among the others. The perl
program is the one that's responsible to fill them in with actual data.
OTOH, I count automatic numbering as part of dynamic data. If it's part of
data in the rows, then programmers must include them in the rows somehow,
like what Sam has shown.
It's important to keep H::T to only provide basic or core functionalities.
I haven't examine H::T::Expr deeply but I think there's a way to utilize it
for that purpose.
regards,
san
--
Trabas - http://www.trabas.com
On Sat, 15 Sep 2001, Raymond B. <[EMAIL PROTECTED]> wrote,
> If you're not doing anything special with the numbering you can do it
> straight HTML (or CSS)
>
> ul == unordered list
> ol == ordered list
>
> If you use an <ol> tag instead it will automagically number each bullet for
> you. The 'type' paramater, or CSS 'list-style:', allows you to select what
> type of numbering system you want.
>
> Type | CSS Keyword | Example
> --------------------------------------
> 1 decimal 1. 2. 3. 4.
> a lower-alpha a. b. c. d.
> A upper-alpha A. B. C. D.
> i lower-roman i. ii. iii. iv.
> I upper-roman I. II. III. IV.
>
> Decimal is the default for an ordered list so doesn't have to be declared.
> Technically with CSS you can us <ul> and still do numbering but it doesn't
> make much sense.
>
> I had to do a bunch of online forms for a legal form which would have driven
> me insane if not for <ol>'s automatic numbering.
>
> -----Original Message-----
> From: Sam Tregar [mailto:[EMAIL PROTECTED]]
> Sent: September 14, 2001 16:08
> To: Kenny Smith
> Cc: Htmltmpl@Lists. Vm. Com
> Subject: Re: [htmltmpl] Do TMPL_LISTS have an implicit counter?
>
>
>
> On Fri, 14 Sep 2001, Kenny Smith wrote:
>
> > I'm looking for something simliar to the loop_context_vars __ODD__,
> __LAST__
> > etc, but one that is what number the element is in the loop. I want to
> > display a list of things with numbered bullets..
> >
> > 1) stuff
> > 2) stuff
> > 3) etc...
>
> No, nothing like that is built in. It's too simple to do yourself! When
> you're building your loop array, just do:
>
> $row->{counter} = $counter++;
>
> -sam
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]