Catalyst

adventures in webdev with perl

cookbook

This is meant to be a Catalyst cookbook (the original content is taken from the Catalyst Advent Calendar). Information might be outdated as the calendar content is mostly based on version 5.61.

If you have questions, a request or want to help feel free to do so on the Catalyst mailing list or on IRC (server: irc.perl.org, channel : #catalyst, nick: kixx or kixxx)

coding practices

help on writing code

  • DRY - do not, I repeat, do not ever repeat yourself
  • testing - test before or after you code, but test nonetheless

models - get your data

views - present your pages

controllers - decide what happens

  • action types - how does catalyst decide which actions are executed?

features

  • YAML - using yet another markup language for your config
  • caching - speed up your app with caches
  • subrequests - generate your own requests
  • auth - an overview of authentication and authorization
  • session - store info in sessions
  • rss - provide rss feeds
  • xmlrpc - implement remote procedure calls over http
  • static - serving static files (like images and css)
  • authorization - how to implement authorization

deployment

how to run your Catalyst app