Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Ash Berlin
Jonathan Rockway wrote: > Dustin Suchter wrote: >> I've looked into "Static::Simple", but I can't find a good >> manual/tutorial on it. I've tried to guess at how to use it but I >> pretty much didn't get anywhere. > > This is probably not the best idea. It would be better for your > Catalyst app

Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Bernhard Graf
On Friday 05 October 2007 09:12, Ash Berlin wrote: > Jonathan Rockway wrote: > > Dustin Suchter wrote: > Another option instead of using X-SendFile for lighttpd is to do as I > describe in http://perlitist.com/articles/catalyst-with-lighttpd > > If you are using apache and want to achieve somethin

Re: [Catalyst] merging DB data with XML data

2007-10-05 Thread Felix Antonius Wilhelm Ostmann
i love Xapian for something like that! www.xapian.org Search::Xapian Catalyst::Model::Xapian the last thing i never used bevore ;) Carl Johnstone schrieb: Hi, This may be more of a DBIx::Class question than Catalyst, but anyway. I have a system where the bulk of the content is generated els

Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Dustin Suchter
Thanks for all the replies- best mailing list ever. Anyway, I'm planning on running lighttpd, but to date I've just been developing with the built in Catalyst server since I've had a bit of an issue getting FastCGI/lighttpd working right on my server. I guess it is time to fix that and then imple

[Catalyst] merging DB data with XML data

2007-10-05 Thread Carl Johnstone
Hi, This may be more of a DBIx::Class question than Catalyst, but anyway. I have a system where the bulk of the content is generated elsewhere in XML format, I've implemented a Catalyst Model that reads the XML, and returns a blessed perl data structure (with appropriate caching etc.) Where

Re: [Catalyst] merging DB data with XML data

2007-10-05 Thread Peter Karman
On 10/05/2007 04:52 AM, Carl Johnstone wrote: > Hi, > > This may be more of a DBIx::Class question than Catalyst, but anyway. > > I have a system where the bulk of the content is generated elsewhere in > XML format, I've implemented a Catalyst Model that reads the XML, and > returns a blessed p

Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Bill Moseley
On Thu, Oct 04, 2007 at 07:34:43PM -0700, Dustin Suchter wrote: > So I've got what has to be a pretty common problem: I've built a > system that is 95% behind some authentication, and 5% public. I'd > like to have the entire public portion be static HTML files that are > all served from the '/publi

Re: [Catalyst] serving static content from one controller?

2007-10-05 Thread Mitchell Jackson
Static::Simple seems to have some configuration options to force certain paths as static only Practical examples can be found here http://search.cpan.org/~jrockway/Catalyst-Manual-5.701002/lib/Catalyst/Manual/Cookbook.pod#Serving_static_content MyApp->config->{static}->{dirs} = [ 'static',

Re: [Catalyst] merging DB data with XML data

2007-10-05 Thread Matt S Trout
On Fri, Oct 05, 2007 at 10:52:19AM +0100, Carl Johnstone wrote: > Hi, > > This may be more of a DBIx::Class question than Catalyst, but anyway. > > I have a system where the bulk of the content is generated elsewhere in XML > format, I've implemented a Catalyst Model that reads the XML, and retu

Re: [Catalyst] Announce: CatalystX::Controller::reCAPTCHA

2007-10-05 Thread Bill Moseley
I'm wondering about the code a little: $result is an empty hash, and so if there's no request parameter the "else" is going to get an empty hash, but $result->{is_valid} and $result->{error} are used in that else block: my $result = {}; if ( $c->req->param( 'recaptcha_response_field' ) )