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

Moving logic from Template Toolkit to Catalyst

I think that I am using too much conditionals and calculations in the TT templates. I am displaying a result set of items from DBIc. For each item I need to calculate things using the retrieved values, and the template doesn't seems to be the right…
Nacho B
  • 1,573
  • 1
  • 12
  • 16
3
votes
1 answer

Catalyst Controller Questions

I just used catalyst for my first large project and I was left wondering if I used catalyst in the way it was meant to be used. I have Root.pm and inside of that file I put multiple url handlers. Is it a best practice to have one controller per url…
shaneburgess
  • 15,702
  • 15
  • 47
  • 66
3
votes
2 answers

Perl Catalyst and FastCgi error logging issues

I have a catalyst app running through fast cgi and the apache error logs are useless. Example: [Thu Oct 13 08:44:35 2011] [error] [client {IP}] FastCGI: server "/usr/local/www/handprints2/script/handprints2_fastcgi.pl" stderr: | ->…
shaneburgess
  • 15,702
  • 15
  • 47
  • 66
3
votes
2 answers

Perl Catalyst: How to re-use applications

I did implement a Catalyst authentication application (captchas, password reminders, access logs, etc...). How am I supposed to re-use it in different Catalyst applications? I.e.: Or - more generally - how am I supposed to let two applications talk…
MarcoS
  • 17,323
  • 24
  • 96
  • 174
3
votes
0 answers

macCatalyst app builds but won't launch on Mac

I am designing a swiftUi app which runs seamlessly on iOS 14 simulators and devices, but fails to launch on the Mac (10.15.7). The app builds without issues, then I have this in the console: dyld: Symbol not found:…
NightCoder
  • 1,049
  • 14
  • 22
3
votes
1 answer

SwiftUI Catalyst App in macOS computer - Which path should I use to save an image in my Mac local disk?

I have this simply code, that I run with Catalyst in macOS: struct ContentView: View { @State private var pathURL = "/Users/cesare/Desktop/Test" var body: some View { VStack { TextField("/Users/cesare/Desktop/Test",…
3
votes
1 answer

Why is my perl Catalyst redirect_and_detach replacement plugin method failing?

Looking for help figuring out a stumping error. I've created a perl Catalyst plugin that's intended to provide a drop-in replacement method for Catalyst 5.90115's redirect_and_detach ($c->redirect_and_detach). My replacement method does nothing…
SomeDude
  • 31
  • 5
3
votes
2 answers

DBIx::Class::Schema::Loader ResultSource base class

I am using DBIx::Class::Schema::Loader for creating a static ORM to my database. I use the following method to create it and specify base classes for ResultSet and Result classes which I can plug generic subs into: make_schema_at( 'MyApp::Schema', {…
Rob Boerman
  • 2,148
  • 14
  • 21
3
votes
1 answer

Loading modules upon config variables on a Perl Catalyst application

I'm setting an Catalyst webapp for deploy and would like to remove the -Debug and StackTrace Catalyst plugins from my app.pm in production environment. However, since I keep a testing environment, I'd like to avoid "hardcoding" this. Instead, I'd…
Leitouran
  • 578
  • 3
  • 16
3
votes
1 answer

How to enable CORS for Catalyst

Having a Perl Catalyst application, which produces JSON, I need to read that JSON content using jQuery within an HTML page, served by an Apache server. Both applications, Catalyst and Apache are running on the same host. When I access the Catalyst…
3
votes
1 answer

Perl catalyst application modification

So I am attempting to modify an application written by another programmer. The program is written in Perl and apparently uses the Catalyst framework neither of which I have any experience with. The code is well documented and my modifications seem…
KTastrophy
  • 1,739
  • 15
  • 23
3
votes
1 answer

how to convert DBIx::Class::ResultSet into JSON

I am trying to obtain JSON from a DBIx::Class::ResultSet and I get the exception encountered object 'Sql2Json::Model::DB::Book=HASH(0x6014f88)', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE…
3
votes
1 answer

DBIx::Class upgrade in Catalyst (DBIx::Class::Schema::Loader)

I am using Catalyst for an application and am getting ready to upgrade the production version to the next major release. In the new release a lot of changes have been made to the database. The ORM in Catalyst is created with…
Rob Boerman
  • 2,148
  • 14
  • 21
3
votes
1 answer

How can I combine Catalyst and ngettext?

I'm trying to get my head around i18n with Catalyst. As far as I understood the matter, there are two ways to make translations with Perl: Maketext and Gettext. However, I have a requirement to support gettext's .po format so basically I'm going…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
3
votes
1 answer

Openid - User details after authentication

I am trying to use Catalyst::Authentication::Credential::OpenID to authenticate users from Google. Once authentication is successful, I get a Catalyst::Plugin::Authentication::User::Hash object as my user. If users are logging in for the first time…
awake416
  • 301
  • 1
  • 3
  • 12