### ----------------------------------------------------
### -- Bailador
### -- Licenses: MIT
### -- Authors: Tadeusz “tadzik” Sośnierz, Anthony Parsons, Carl Masak, Gabor Szabo, GlitchMr, Moritz Lenz, Panu Ervamaa, Paul Cochrane, Solomon Foster, Sterling Hanenkamp, Tobias Leich, ugexe, vendethiel, Martin Barth (ufobat), Emeric Fischer, Julien Simonet (jsimonet)
### -- File: examples/plugins/app.pl
### ----------------------------------------------------
#!/usr/bin/env perl6

use v6.c;
use lib 'examples/plugins/lib';
use lib 'lib';
use Data::Dump;
use Bailador;
use Bailador::Plugin::Example;

get '/' => sub {
    template 'index.tt', {
        title => 'Plugin Example',
        plugin_text => app.plugins.get('Example').sample
    };
}

baile();


