Re: [Catalyst] Catalyst::View::Email broken?

2008-01-10 Thread Moritz Onken
Hi, could you also implement a way to put the subject in the template? Something like (TT): [% subject = My Subject %] [% BLOCK content %] Email content [% END %] This makes localization possible for the subject, when can we expect a new version? Greets, Moritz Am 10.01.2008 um 01:50

Re: [Catalyst] hostname

2008-01-10 Thread Carl Johnstone
from the context object, but is unavailable to MyApp.pm. cookie_domain Both the context object and the hostname should be available to code within MyApp.pm, but only if the code is running during a request. In any case I wouldn't point multiple domains at the same site, you're always best

Re: [Catalyst] hostname

2008-01-10 Thread Wade . Stuart
Carl Johnstone [EMAIL PROTECTED] wrote on 01/10/2008 09:44:30 AM: from the context object, but is unavailable to MyApp.pm. cookie_domain Both the context object and the hostname should be available to code within MyApp.pm, but only if the code is running during a request. In any case I

Re: [Catalyst] Catalyst::View::Email broken?

2008-01-10 Thread J. Shirley
On Jan 10, 2008 1:36 AM, Moritz Onken [EMAIL PROTECTED] wrote: Hi, could you also implement a way to put the subject in the template? Something like (TT): [% subject = My Subject %] [% BLOCK content %] Email content [% END %] This makes localization possible for the subject, when can

Re: [Catalyst] Catalyst::View::Email broken?

2008-01-10 Thread Moritz Onken
You could run the code which sends the mail within a template which gets post processed. There you can access subject and content and attachments if you like and pass them to the mail function. the post processed template could check whether subject or content is avaiable. if so pass it

Re: [Catalyst] hostname

2008-01-10 Thread Jason Kohles
On Jan 10, 2008, at 1:54 PM, Octavian Rasnita wrote: From: Carl Johnstone [EMAIL PROTECTED] Both the context object and the hostname should be available to code within MyApp.pm, but only if the code is running during a request. Ok, but how to get the hostname during a request in MyApp.pm

Re: [Catalyst] hostname

2008-01-10 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Sys::Hostname or a statically set config var, as there is no reference to a request at that point (or any real way to derive the list of possible hostnames hat could be requested). But then again, unless you know the hostname that will always be requested why try to

Re: [Catalyst] hostname

2008-01-10 Thread Jason Kohles
On Jan 10, 2008, at 3:15 PM, Octavian Rasnita wrote: From: Ash Berlin [EMAIL PROTECTED] How did you get to a function in MyApp.pm during a request # in MyApp.pm sub foobarbaz { my ($c) = @_; } # In controller code. $c-foobarbaz(); Make sense? Not really. I've tried (in MyApp.pm):

Re: [Catalyst] POD viewer

2008-01-10 Thread Ashley
On Jan 10, 2008, at 10:59 PM, Jonathan Rockway wrote: Silly quoting below, so I'm top posting. Take that! Anyway, the Catalyst Advent Calendar is basically a POD server. Is it pretty? No... but it is something you can cargo cult if you want. I don't know if the code is pretty yet but the