hello Sean,

I'm afraid it does the same ... 

On Mon, Jul 28, 2008 at 11:26:05AM -0700, Sean McAfee wrote:
> sub Foo::field { $_[1] }
> $Template::Stash::HASH_OPS->{foo} = sub { shift->field(@_) };
> Template->new->process(\"[% x.foo(42) %]", { x => bless({ }, 'Foo' });

-- 
Marc Chantreux
BibLibre, expert en logiciels libres pour l'info-doc
http://biblibre.com

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to