[jifty-devel] Difference Between alias and import_templates in Template::Declare

Ruslan Zakirov ruslan.zakirov at gmail.com
Wed Oct 14 15:45:36 EDT 2009


On Wed, Oct 14, 2009 at 10:38 PM, Shawn M Moore
<sartak at bestpractical.com> wrote:
> On Wed, Oct 14, 2009 at 11:15:54AM -0700, David E. Wheeler wrote:
>> On Oct 14, 2009, at 11:05 AM, Shawn M Moore wrote:

[snip]

>> > Both forms of composition are useful and good. I think we can have
>> > both in TD.
>>
>> Okay. Then the question then becomes, what should we call the current
>> delegation method?
>>
>>    delegate_to Some::Class in This::Class under '/foo' setting { foo
>> => 'bar' };
>>
>> I'd like a shorter expression than "delegate_to" (one reason I really
>> liked `mix`), but maybe I'm just being obtuse.
>
> Hmm. I'd like to avoid the underscore if we can. Maybe just "delegate"
> or even "alias".
>
> delegate Some::Class in This::Class under '/foo' setting { foo => 'bar' };
>
> delegate Some::Class under '/foo';

delegate to Some::Class in This::Class under '/foo' setting { foo => 'bar' };

delegate '/foo' in This::Class to  Some::Class setting {};

>
> shrug!
>
>> Comments?
>>
>> Best,
>>
>> David
>
> Shawn
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>



-- 
Best regards, Ruslan.


More information about the jifty-devel mailing list