[htmltmpl] objects in templates
Brought to you by:
samtregar
From: Mark M. <mm...@ol...> - 2002-07-25 17:35:26
|
Hey, has anyone doing something like this - <tmpl_obj object="Object" var="id"> <tmpl_obj object="Object" var="name"> and in the .pl - my $Object = Object->new; $Object->{id} = 23; $Object->{name} = "this is an object"; my $template = HTML::Template->new(filename => "ErrorPage.tmpl", associate => $cgi, die_on_bad_params => 0); $template->param(object => $Object); sure would make some of my stuff cleaner if i could pass in a single object instead of arguments for each parameter/attribute. -- Mark Mertel mm...@ol... Phone: (360) 344-3113 FAX: (360) 344-3553 Cell: (206) 409-2018 |