Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (60 sloc) 2.33 KB

Learning website development using Dancer

A hands-on training session at LPW 2011 to develop a website with dynamic content.

From doing the exercises you will:

  • learn to use the Dancer framework
  • learn to use Template Toolkit
  • understand the concept of Model-View-Controller
  • experience structuring code for maintainability
  • experience using object oriented Perl modules

What's Dancer?

Dancer is a micro 'web framework' - a toolkit for developing a dynamic web application. It is inspired by the Ruby framework, Sinatra.


Basic knowledge of:

  • Perl (no need for OO Perl)
  • Bash/Linux command line interface
  • A text editor like vi/emacs/pico


  • Bring a laptop with an ssh client (e.g. PuTTY or MINGW/MSYS if it's Windows)

Getting Started

  • Login to as per the printout received on arrival
  • Checkout the learning materials
git clone git://


Do your exercises in the directories


and if you get stuck, you'll find solutions in


Paths to take

The lesson is divided into two sections:

This provides you with the basic toolkit of skills for implementing a web site.

This is where the interface to the search engine is implemented. If you just want to cut to the chase, you can skip some of the exercises as follows:

Quick (and Dirty) Dancing

  • Part 1: Ex 1 - 4, 6, 8
  • Part 2: Ex 1 - 4

Further Reading

Jump to Line
Something went wrong with that request. Please try again.