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 pr

RE: [Catalyst] POD viewer

2008-01-10 Thread Jonathan Rockway
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. http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/CatalystAdvent/ Regards, Jonathan Rockway On

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.p

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 Octavian Rasnita
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): sub the_host { my ($c) = @_; return $c->req->host

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

Re: [Catalyst] hostname

2008-01-10 Thread Ash Berlin
On Jan 10, 2008, at 6: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

Re: [Catalyst] hostname

2008-01-10 Thread Wade . Stuart
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote on 01/10/2008 12:54:06 PM: > 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 d

Re: [Catalyst] hostname

2008-01-10 Thread Octavian Rasnita
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 if a $c variable is not available? Octavian __

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

Re: [Catalyst] hostname

2008-01-10 Thread Carl Johnstone
From: <[EMAIL PROTECTED]> How would you propose handling an ASP like service that is branded (both host whatever.companya.com ... othersuch.company9.com, and templates) for 1 companies? You should've a bit further down to where I wrote: That said, there's a case for needing to know t

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 subjec

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

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 o

[Catalyst] Windows XAMPP Install - What happened to ngmedia.net?

2008-01-10 Thread Collin Condray
I am attempting to install Catalyst on my Windows machine using the XAMPP distribution. One of the steps in the Windows install instructions in the Catalyst wiki (http://dev.catalystframework.org/wiki/Faq_ref#bi.1) is add the repository on the home.ngmedia.net server. However, it appears that the n

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 schri