I'm trying to reduce the number of templates I'm using for a project but
can't figure out a good way to do this given the constraints of
appearance.
The easy one has two different forms wrapped by the same overall web page.
(In my last project (if you want to call it that) because of changing
On Mon, Dec 22, 2003 at 09:49:48AM -0200, Gabor Szabo wrote:
>So far the only way I could think of is to go over these arrays and
>replace the scalar values with hash-refs:
Correct. You can do this in a single pass, of course:
$tmpl->param(items => [map{{item => $_}} @items] );
(untested but ou
your suggested solution - is the correct solution
cheers,
Mathew
- Original Message -
From: "Gabor Szabo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 10:49 PM
Subject: [htmltmpl] LOOP over array of scalar elements
>
> It might be a very simple question
It might be a very simple question but I could not find the answer so far:
In a larger hash I have an array-ref with simple scalars in it
items => [
'apple',
'banana',
'orange'
]
I'd like to use this directly in a H:T with something like the
following but