Hi Mark,
Glad you like it.
> Would it work for something like this:
>
> package Object;
>
> sub new {
> my ($class, $id) = @_;
> my $self = {};
> bless $self, $class;
> $self->{name} = "name of object";
> $self->{id} = $id;
> return $self;
> }
>
> package main;
>
> my $obj = new Object(1);
>
> $tmpl->param(object => $obj);
>
>
Yes, it does.
You can retrieve object attributes for objects based on hashrefs.
And before someone asks, I have also experimented with having
HTML::Template call methods on blessed references, which would be used
to retrieve attributes by means of accessor methods, but I have
discarded that notion again, because it very quickly makes you want to
pass parameters into those methods or implement methods with
side-effects and HTML::Template should not wander into this terrain,
what with seperation of (page) design and code.
Cheers,
Thilo
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users