x
Loading
 Loading
Hello, Guest | Login | Register

Building Applications With Gantry

All the prowess of Perl, plus a powerful
application framework

Gantry (http://www.usegantry.org) is a Perl- powered Web application framework. Started as a proprietary toolkit some ten years ago, Gantry has evolved through three major revisions. In mid-2005, Gantry was released as open source software under the same license as Perl itself, and maintenance and enhancement continue to this day. Like many other frameworks, Gantry implements the classic Model-View-Controller (MVC) pattern. However, Gantry allows you to use as much as or as little of the pattern as you’d like. If you code in Perl and want to both jumpstart and simplify your next Web application, Gantry can give you a boost.

Let’s build an application of moderate complexity from scratch using Gantry and its code generation framework, Bigtop. To keep things simple, this example uses Gantry’s built-in Web server. Migration to mod_perl is straightforward, and the Gantry documentation provides examples of deployments.

The first step is to install the Gantry and Bigtop packages from the CPAN. If necessary, install HTML::Prototype, File::Copy::Recursive, and Data::FormValidator first and then install Gantry and Bigtop.

 $ sudo cpan cpan> install HTML::Prototype  … cpan> install File::Copy::Recursive … cpan> install Data::FormValidator … cpan> install Gantry … cpan> install Bigtop 

When you install Gantry and Bigtop, provide valid pathnames (or accept the defaults) and answer “yes” to all of the prompts to install of the components and supplemental files. In addition to code…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Helpful Tools for Software Developers
  2. The Github Hall of Fame
  3. Book'em, Github.
  4. This Week on Github: Stupid Ruby Tricks
  5. A Veritable Scatter Shot!
Follow Linux Magazine
Rackspace