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

David E. Wheeler david at kineticode.com
Thu Oct 8 20:17:36 EDT 2009

On Oct 8, 2009, at 12:47 PM, Jesse Vincent wrote:

> It's a small, but not minor difference, as it changed how things  
> work in
> use cases involving inheritance. I remember a design session with  
> clkao
> where we hashed out the need for both and wrote the skeleton of the
> tests to demonstrate it.  What I don't remember is the actual use  
> cases.
> I'd really like to not break the old API, but I'd be happy to ship a
> release with import_into Carp::cluck'ing with a message asking the  
> user
> to report the use case back to jifty-devel so we can doc how it was  
> used
> and find a newer, cleaner way to do what it did.

It's actually `alias` that has the difference, and only when you alias  
a class that inherits templates from a parent class. I could find a  
place to carp about that case, yes.

> Does that seem like a reasonable way forward?

Works for me, yes.



More information about the jifty-devel mailing list