[Templates] Carp error

Tim Dolezal tdolezal@ces-inc.cc
Thu, 2 Jan 2003 13:34:43 -0800


Yes, I did miss the %], I have never done that before :-|, my first
template. Ha.

The foreach change worked.

Thanks.

Tim


I see a couple of problems with the template:

> Name - [% name %]
>  
> [% FOREACH ibo = ibos %]

ibos is a reference to a hash, not an array.  I think you want:

  [% FOREACH ibo = ibos.keys %]

and then each access would be ibos.$ibo.IBONumber,
ibos.$ibo.UplineIBONumber, and so on.

>  [% ibo.IBONumber %] [% ibo.UplineIBONumber %] [% ibo.IBOActive %] [% 
> ibo.IBOPin %] [% ibo.FirstName %] [% ibo.MI %] [% ibo.LastName %] [% 
> ibo.SpouseType %] [% ibo.CreateDate %] [% ibo.ModifyDate %] [% 
> ibo.ModifiedBy
                 %]

Is this a transcription error, or an error in the template?

> [% END %]

(darren)

-- 
A computer lets you make more mistakes faster than any other invention,
with the possible exceptions of handguns and Tequila.
    -- Mitch Ratcliffe

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://lists.ourshack.com/mailman/listinfo/templates