[jifty-devel] Difference Between alias and import_templates in Template::Declare
David E. Wheeler
david at kineticode.com
Wed Oct 7 01:05:27 EDT 2009
On Oct 6, 2009, at 9:27 PM, David E. Wheeler wrote:
> In imported templates, the invocant is an object blessed into the
> class into which the templates were imported.
>
> In aliased templates, the invocant is an object blessed into the class
> from which the templates were aliased.
Turns out that in neither case is an object passed. It looks like an
object is *never* passed. It's a class name. This, to me, makes the
distinction even less important.
> Is this an important distinction? The tests in t/aliasing.t and t/
> importing.t demonstrate it quite clearly, but I'm wondering whether
> anyone ever noticed this or if it's necessary? To me, the behavior of
> aliases is a bit weird, since they're supposed to be like mixins.
The questions still stand, though.
Best,
David
More information about the jifty-devel
mailing list