[jifty-devel] Difference Between alias and import_templates in Template::Declare
David E. Wheeler
david at kineticode.com
Wed Oct 14 15:44:02 EDT 2009
On Oct 14, 2009, at 11:38 AM, Shawn M Moore wrote:
> Sorry, I mean the ancient docs Jesse wrote, not what you are
> writing. To be fair to Jesse though, we're spending a lot more time on
> fine details, and have the benefit of a lot of experience with using
> TD.
Yeah, I didn't think you meant the stuff I'd written. Maybe it's time
to take out the "Bugs crawling all over" bit, though.
> Sure, I just mean the programmer doesn't have to type the template
> names
> mutiple times. I'm not sure that selecting which templates to delegate
> to would be a useful feature. If it turns out we ever need it, we
> can add
> it. It'll be easier than it would have been thanks to your
> refactoring. :)
Agreed.
> 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';
I'm happy not to have the underline, but I'm not sure "delegate" works
without the "to". But maybe it doesn't matter?
David
More information about the jifty-devel
mailing list