[Catalyst] Problem Using Jemplate

Mesdaq, Ali amesdaq at websense.com
Fri Mar 21 22:04:51 GMT 2008


I think you have to specify the view in some cases. I know I had to do
that for JSON views like this.

# At the end of the controller method
$c->stash->{current_view} = 'JSON'; 

Maybe jtemplate becomes the default. Are you specifying a TT template by
the way?

Thanks,
------------------------------------------
Ali Mesdaq (CISSP, GIAC-GREM)
Security Researcher II
Websense Security Labs
http://www.WebsenseSecurityLabs.com
------------------------------------------

-----Original Message-----
From: Stephen Sykes [mailto:stephen at stephensykes.us] 
Sent: Friday, March 21, 2008 2:29 PM
To: The elegant MVC web framework
Subject: [Catalyst] Problem Using Jemplate

I've been playing with jrockway's Jemplate example and when I create the
view using script/myapp_create.pl view Jemplate the app will no longer
render the TT view. It seems to overwrite template rendering and will
print a few lines of javascript to the screen, no matter what screen I
try to view. Anyone know what the problem is here? If I delete
/lib/MyApp/View/Jemplate.pm the app will work again by rendering the
proper tt2 templates.

Thanks in advance for your help.

Stephen

_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


 Protected by Websense Messaging Security -- www.websense.com 



More information about the Catalyst mailing list