[jifty-devel] Mysterious Dispatcher / Jifty::View::Declare vanishing templates

Peter Mottram peter at sysnix.com
Mon Jun 14 13:29:26 EDT 2010

I restart the jifty server after every change and my TD packages look 
clean (to me anyway) ...

$ grep -H View View.pm
View.pm:DiveMalta::View - TD view declarations
View.pm:package DiveMalta::View;
View.pm:use Jifty::View::Declare -base;
View.pm:require DiveMalta::View::Admin;
View.pm:alias DiveMalta::View::Admin under '/admin/';
View.pm:require DiveMalta::View::Course;
View.pm:alias DiveMalta::View::Course under '/course';
View.pm:require DiveMalta::View::Divesite;
View.pm:alias DiveMalta::View::Divesite under '/divesite';
View.pm:require DiveMalta::View::Gallery;
View.pm:alias DiveMalta::View::Gallery under '/gallery';

$ grep -H View *
Admin.pm:package DiveMalta::View::Admin;
Admin.pm:use Jifty::View::Declare -base;
Course.pm:package DiveMalta::View::Course;
Course.pm:use Jifty::View::Declare -base;
Divesite.pm:package DiveMalta::View::Divesite;
Divesite.pm:use Jifty::View::Declare -base;
Gallery.pm:package DiveMalta::View::Gallery;
Gallery.pm:use Jifty::View::Declare -base;
Page.pm:package DiveMalta::View::Page;
Page.pm:use base qw(Jifty::Plugin::ViewDeclarePage::Page);
Page.pm:use Jifty::View::Declare::Helpers;

On Mon, 14 Jun 2010, Alex Vandiver wrote:

> On Mon, 2010-06-14 at 14:55 +0200, Peter Mottram wrote:
>> All looks fine to me but the required rule is not called since its info
>> log output doesn't appear in the log output above. I can get different
>> parts of my app to 'disappear' depending on the order that I go through
>> the site.
> Check the "package" declarations at the top of your template files?
> This could be consistent with DevelMode reloading your files, and having
> a copy-and-paste error in the "package" lines, leading to your templates
> getting stuffed into the wrong namespace.
> - Alex
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

More information about the jifty-devel mailing list