[Templates] Template::Plugin::Class and moniker
[prev]
[thread]
[next]
[Date index for 2004/10/20]
I'm trying to use Template::Plugin::Class to access the moniker method
of my class. My moniker method overrides the UNIVERSAL::moniker method
in the base class I inherit from (Class::DBI). So in my template I have:
[% class_name = 'foo' ;
class_obj = USE Class(class_name) ;
class_obj.moniker ;
%]
What gets printed is 'proxy', which is the last element of
'Template::Plugin::Class::Proxy'! It appears that the proxy object
inherits from UNIVERSAL::moniker somewhere along the line. That wouldn't
be too bad but that method gets called instead of the override in my class.
Does anybody know how to fix this?
Thanks and regards,
Dave
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Template::Plugin::Class and moniker
Dave Howorth 11:13 on 20 Oct 2004
|