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.
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.
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.
In this screencast I provide a basic introduction to arrays in Perl 6.