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
28
votes
3 answers

Dancer vs Catalyst [Perl Web Frameworks]

What do you think about both? I began reading a book about Catalyst, and found it pretty complex as compared to Dancer. so now I'm giving Dancer a try, and it looks easier to learn and more "human friendly".
snoofkin
  • 8,725
  • 14
  • 49
  • 86
26
votes
2 answers

Understanding spark physical plan

I'm trying to understand physical plans on spark but I'm not understanding some parts because they seem different from traditional rdbms. For example, in this plan below, it's a plan about a query over a hive table. The query is this: select …
codin
  • 743
  • 5
  • 15
  • 27
24
votes
3 answers

Why use nginx with Catalyst/Plack/Starman?

I am trying to deploy my little Catalyst web app using Plack/Starman. All the documentation seems to suggest I want to use this in combination with nginx. What are the benefits of this? Why not use Starman straight up on port 80?
Eric Johnson
  • 17,502
  • 10
  • 52
  • 59
21
votes
4 answers

Perl version string: why use EVAL EXPR?

I just took notice to this generated by Catalyst.pl. It is obviously some sort of unannotated hack. What is the advantage of setting up a version string like this? I can't even figure out what they're trying to do. our $VERSION = '0.01'; $VERSION =…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
19
votes
1 answer

How can I handle hash keys containing illegal identifier characters in Template Toolkit?

In Template Toolkit, if I have the following variable containing a hashref: [% artist = { 'life-span' => '1975 to 1987', } %] What is the best way to output the data in 'life-span'? I have tried... [% artist.life-span %] ^This fails…
nick
  • 1,369
  • 2
  • 13
  • 28
18
votes
1 answer

Does Express.js support sending unbuffered progressively flushed responses?

Perl's Catalyst framework permitts you to send an progressively flushed response over an open connection. You could for instance use write_fh() on Catalyst::Response. I've begun using Node.js, and I can't find how to do the equivalent. If I want to…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
14
votes
4 answers

Is there any performance comparison between Perl web frameworks?

I have seen mentions (which sounded like unsubstantiated opinions, and dated ones at that) that Embperl is the fastest Perl web framework. I was wondering if there's a consensus on the relative speed of the major stable Perl web frameworks, or…
DVK
  • 126,886
  • 32
  • 213
  • 327
13
votes
5 answers

Catalyst app info.plist not being recognized

I am trying to submit my first catalyst app to the Mac App Store. I have setup the App Store information in iTunes Connect, and I have confirmed that the info.plist in app has the following key in it: LSApplicationCategory
Michael Rowe
  • 141
  • 1
  • 5
11
votes
3 answers

How can I override WRAPPER in a Template Toolkit template file?

Is there a way to disabling a WRAPPER that was set in new(\%config), through either the template, or a temporary override with parse()? I want to have a single default WRAPPER (that I'll use for 99.9% of my templates), but exclude a few. I'm doing…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
10
votes
3 answers

How do I handle errors in methods chains in Perl?

What is the best way to deal with exceptions threw in a method chaining in Perl? I want to assign a value of 0 or undef if any of the methods chained throw an exception Code sample: my $x =…
nsbm
  • 5,842
  • 6
  • 30
  • 45
10
votes
1 answer

Stripe: Do I need to refund for uncaptured charges?

So in our app, we do not charge immediately but simply create stripe charge with capture set to false so that customer is not charged instantly. Question: Should we still issue a Refund for the customer (in case of app/db error) despite the fact…
dev02
  • 1,776
  • 3
  • 24
  • 45
10
votes
4 answers

What's the right way to display a DBIx::Class ResultSet in my Catalyst project that uses Template Toolkit?

Given a DBIx::Class resultset, for example: my $rs = $c->model("DB::Card")->search({family_name => "Smith"}); the tutorials I've read use the stash to pass an arrayref of rows: $c->stash->{cards} = [$rs->all]; This results in the query getting…
Thelema
  • 14,257
  • 6
  • 27
  • 35
10
votes
2 answers

What's the difference between :Args and :CaptureArgs in Catalyst?

I can usually get the behavior I desire by just randomly trying different permutations of these two options, but I still can't say I know precisely what they do. Is there a concrete example that demonstrates the difference?
friedo
  • 65,762
  • 16
  • 114
  • 184
9
votes
1 answer

Moose method modifiers on DBIx::Class::Schema models in Catalyst

For any given result class MySchema::Result::Foo (built from default schema loader generated syntax which uses Moose/MooseX::nonmoose) If I add a BUILDARGS method wrapper to sanitize the constructor data for a row like so: package…
nebulous
  • 738
  • 6
  • 17
9
votes
1 answer

uWSGI logging not working if log file is removed

My goal is rotating the logs generated by uWSGI, but when the original log file is deleted (after compression) it is not re-created again. So I thought that the app needs a graceful restart of the master process after the file is deleted. I use this…
Nacho B
  • 1,573
  • 1
  • 12
  • 16
1
2 3
34 35