

If you open a browser and visit you’ll see your application.

The default Dancer application draws the programmer into learning more about Dancer programming. When you installed Dancer you got a command line program called “dance” which helps you to create the skeleton of an application. The First Danceĭancer makes it easy to start writing a web application. This is called Dancer::Plugin::DBIC and will make it easy for us to take the DBIx::Class libraries that we built in the previous article and use them with Dancer. The Dancer installation includes a number of useful Dancer tools, but we’ll also need one which is distributed separately on CPAN.
Simple webpage web app wrapper install#
Fortunately, Dancer is available from the package repositories of most major Linux distributions so you’ll just need to run “yum install perl-Dancer”, “apt-get install libdancer-perl” or something similar for your version of Linux. Gathering Your ToolsĪs well as the modules we installed last month, we’re going to need some more modules from CPAN ( ). I’ve chosen Dancer as it seems well-suited to the simple web page we’re going to build here. See the box for a brief discussion of some of the alternatives. Dancer is one of a number of Perl frameworks that are available. We’ll be using the Dancer framework to build our page. Perl is, of course, a great language for doing this and in this article we’ll build a web application that displays our reading lists. It would be nicer to display these lists on a web page. At any time the program would display a list of books that we were reading, that we had read and that were still waiting in the pile.Ĭommand line programs aren’t particularly pretty though. We could add books to the list and note when we started and finished reading them. In last month’s article, we built a simple command line program to manage a reading list.

Modules, References, Data Structures and Objects.An Introduction to the Perl Documentation.How We Wrote The Template Toolkit Book Using Template Toolkit.Creating Data Output Files with the Template Toolkit.
