Questions tagged [catalyst]

Catalyst is a Perl web application framework, similar to Ruby on Rails, Spring (Java), and Maypole.

Catalyst is an elegant web application framework written in the Perl programming language, extremely flexible yet extremely simple. It's similar to Ruby on Rails, Spring (Java), and Maypole, upon which it was originally based. Its most important design philosphy is to provide easy access to all the tools you need to develop web applications, with few restrictions on how you need to use these tools.

http://www.catalystframework.org/

Resources to learn Catalyst:

Useful Links:

524 questions
9
votes
2 answers

Why is Test::WWW::Mechanize::PSGI using a port?

I have some code that looks like this: use SomeApp; use Test::WWW::Mechanize::PSGI; my $mech =…
Ovid
  • 11,580
  • 9
  • 46
  • 76
9
votes
3 answers

Is there a way to force $c->uri_for in Catalyst to generate a URI that begins with https?

I've written a web application using Catalyst that has a lot of forms and needs to run over https. There are no hard-coded URLs, everything uses $c->uri_for or $c->req->uri. Everything worked great in the development environment using the dev server…
mhchaudhry
  • 93
  • 1
  • 5
9
votes
2 answers

What are best practices for deploying a Catalyst application to a production server?

What is a good way to deploy Catalyst applications to a production server? Currently I simply have a FastCGI dispatch script in the root of the repository and when I want to update the server code, I push the branch to the server. This is quite…
zoul
  • 102,279
  • 44
  • 260
  • 354
8
votes
1 answer

IE9 loses requests to a local Catalyst server

Okay, this is a hard one. I have a Catalyst server I can access just fine from Firefox 4, Chromium 12, and IE 8 and 9 on other computers. When I try to access it from IE9 on my own machine (the same machine the server is on), I get strange timeouts…
wes
  • 7,795
  • 6
  • 31
  • 41
8
votes
5 answers

What's the best action persistence technique for a Catalyst application?

I'm writing a Catalyst application that's required to have a fairly short session expiration (15 minutes). I'm using the standard Catalyst framework authentication modules, so the user data is stored in the session -- i.e., when your session…
genehack
  • 136,130
  • 1
  • 24
  • 24
8
votes
1 answer

Catalyst event loops only reaching a single client at a time

I'm working on a Catalyst/psgi application that would make great use of asychronous streaming, however beyond a simple timer (like here: http://www.catalystframework.org/calendar/2013/13), I'm a little stumped on how to implement more "global"…
Ryan
  • 672
  • 1
  • 6
  • 16
7
votes
1 answer

Is there a Catalyst tutorial that uses HTML::Template instead of TT?

I've been looking through a couple of Catalyst tutorials and they all tend to use Template Toolkit instead of HTML::Template. I've spent a lot of time with HTML::Template and I like it, and while I can see the power of TT, I don't know it, and I…
AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68
7
votes
2 answers

Is there a way to allow multiple chains to share the same endpoint in Catalyst?

I'm a bit of a Catalyst newbie, and I'm trying to get multiple chains to access the same endpoint ('description' subroutine) e.g: /object/fetch_by_id/*/description /object/fetch_by_name/*/description /object/fetch_by_xref/*/description I don't want…
gawbul
  • 1,207
  • 12
  • 20
7
votes
1 answer

Get WRAPPER functionality from Template::Toolkit in Text::Xslate

I've used Template::Toolkit for my last few Catalyst projects and have a set up that I like using that allows a clean separation of my templates. Now I'm hoping to use Text::Xslate, but I'm having trouble figuring out if I can do my same setup or…
srchulo
  • 5,143
  • 4
  • 43
  • 72
7
votes
1 answer

How can I upload a file using Catalyst?

I am working on an internal web based application for storing and cataloging photos. How should I retrieve, and save these files to the server? Note: I want to save the files to the file system, not to a database. Similar to How can I handle HTTP…
Brad Gilbert
  • 33,846
  • 11
  • 78
  • 129
7
votes
3 answers

How should I best structure my web application using job queues [and Perl/Catalyst]?

I'm writing a web application using the Catalyst framework. I'm also using a Job Queue called TheSchwartz. I'm wanting to use a job queue because I'm wanting as much of the application specific code decoupled from the web application interface…
Adam Taylor
  • 7,534
  • 8
  • 44
  • 54
7
votes
3 answers

How to manage the installation of modules used by an open source Perl project?

I work on a small open-source Perl project with Catalyst, Open Street Map and dozens of modules. I try to use as many modules found on the CPAN as I can because my aim is not to reinvent the wheel. All this stuff has been installed through cpanm and…
smonff
  • 3,399
  • 3
  • 36
  • 46
7
votes
5 answers

What's the best approach to migrate a CGI to a Framework?

i have a big web application running in perl CGI. It's running ok, it's well written, but as it was done in the past, all the html are defined hardcoded in the CGI calls, so as you could imagine, it's hard to mantain, improve and etc. So now i would…
VP.
  • 5,122
  • 6
  • 46
  • 71
7
votes
2 answers

Viewing the variable content in a clean way

So the way I'm using to view a variable content is to use Data::Dumper in my template toolkit: [% USE Dumper %] [% Dumper.dump(varname) %] But the result I get is kind of a big mess - all the info about table relations, column types and attrbitues…
kK-Storm
  • 474
  • 1
  • 4
  • 16
7
votes
2 answers

Two or more PathParts chained ( Catalyst )

How can I have more than one pathpart in an action at the same time? I tried with Regex and LocalRegex but it realy doesnt work. This is the result I want: /typeone/*/*/something /typetwo/*/*/something I want to achieve this by using only one base…
LuRsT
  • 3,973
  • 9
  • 39
  • 51
1
2
3
34 35