bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:
Now I want to be able to call this method from a TT. I've tried to use this class it like Template plugin, w/o success :"(sub cols { my ($self, $which, @list) = @_; no strict 'refs'; if (@list) { @{$$self{"_cols_$which"}} = @list; } else { return @{$$self{"_cols_$which"}} } }
PLUGIN_BASE is correctly set..file error - parse error - stuff/list.tpl line 17: unexpected token (B +lah) [% use Blah %]<br>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template::Toolkit and foreign classes ?
by merlyn (Sage) on Feb 05, 2005 at 23:23 UTC | |
by bugsbunny (Scribe) on Feb 06, 2005 at 22:44 UTC |