in reply to Forcing context of dot operator in Template Toolkit
Seriously, the problem is that C::R returns a highly overloaded singleton object to "sense" the right context, which fails in TT because TT has its own simple probes for "is this an object? Yes, call a method. No, well is it a hash ref then?" and so on.
You're unlikely to get them to play together. You'll need to build a Perl shim that you can insert between the thing that returns a C::R object and that TT can actually call. Sorry about that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Forcing context of dot operator in Template Toolkit
by agianni (Hermit) on Oct 24, 2007 at 16:36 UTC |