Re: [htmltmpl] hierarchical template parameters patch

2002-10-03 Thread Thilo Planz
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

Re: [htmltmpl] hierarchical template parameters patch

2002-10-03 Thread Mark Mertel
Thilo, I think this is a great idea. 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;

[htmltmpl] hierarchical template parameters patch

2002-10-02 Thread Thilo Planz
Hi, thanks for __counter__ and in version 2.6. I'd like to suggest another feature: setting hashrefs as template parameters with the effect that HTML::Template retrieves all key/value-pairs from the hashref and sets corresponding parameters. The parameters follow a hierarchical naming scheme,