Camelia

Perl 6 Maven

Bailador Application in a module

In the previous examples using Bailador we put all the code in a single app.pl file. At one point we moved the HTML template to the views/ subdirectory, but for larger applications and for reusable code, we'll want to be able to put code in separate files. That's what we are going to do now.


Bailador Application in a module


Echo text with Bailador using Template::Mojo

After getting started with Bailador serving simple text, we saw how we can accept input from the user and echo it back, but we had the HTML snippets embedded in our Perl 6 code. That can work for really small applications, but if we would like to build a real web application we need to move the HTML out to externale template files.

Bailador user Template::Mojo as its default templating system.


Echo text with Bailador using Template::Mojo


Installing Rakudo Perl 6

Unless you want to actually develop Rakudo itself, the recommendation is to install the Rakudo Star package. It contains the Rakudo compiler, documentation, and some extra modules. It can automatically build MoarVM, so you don't need to worry about that.

Windows users are even more spoiled, as the Rakudo development team provides ready-made binaries of Rakudo Star in msi format.


Installing Rakudo Perl 6


Web development using Perl 6

In preparation of my talk Web development using Perl 6 at YAPC::EU I set out to list the web applications that are currently using Perl 6. Here is what I know so far.


Web development using Perl 6


Introduction to Perl 6: arrays

In this screencast I provide a basic introduction to arrays in Perl 6.


Introduction to Perl 6: arrays


Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: