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
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
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
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
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
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
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
"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
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
__
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
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
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
"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
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
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
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
16 matches
Mail list logo