A light-weight route-based web application framework for Perl 6
Clone or download
ufobat Ticket #306 - params for layout
Parameters are now passed to the layouting template call as well.
Keep in mind that the $content is still the first parameter that gets passed.
Latest commit 27e0e84 Aug 13, 2018

README.md

Build Status Build status Average time to resolve an issue Percentage of issues still open License: MIT Maintenance

NAME

Bailador

SYNOPSIS

use Bailador;

get '/' => sub {
    "Hello World";
}

baile();

DESCRIPTION

Bailador is a light-weight route-based web application framework for Perl 6. Talk to the developers at https://perl6-bailador.slack.com/

INSTALLATION

Once you have Rakudo Star installed open a terminal (or command line on Windows) and type:

$ zef update
$ zef install Bailador

This should download and install Bailador.

You can test your installation, and see what is your Bailador installed version with the following command:

$ bailador version

NB: If you are using Rakudobrew you may need to run the following command to make bailador available in your terminal:

$ rakudobrew rehash

GETTING STARTED

At the command prompt, create a new Bailador application:

$ bailador new App-Name

Then, change directory to App-Name and start the web server:

$ bailador watch bin/app.pl6

That's it! Using a browser, go to http://localhost:3000. Isn't it wonderful?

You can now edit the files and Bailador reloads the application while you're developing.

If you want to learn more about Bailador, please visit our documentation.

EXAMPLES

For more examples, please see the examples folder.

BAILADOR RESOURCES

You can find a list of Bailador resources (articles, posts, talks, books, ...) here.

Bailador-based applications

Related projects

https://github.com/pnu/heroku-buildpack-rakudo

CONTRIBUTION

GitHub contributors

We encourage you to contribute to Bailador! If you'd like to do that, see first the CONTRIBUTING document.

LICENSE

Bailador is released under the MIT License.