### ----------------------------------------------------
### -- Web::App::MVC
### -- Licenses: Artistic-2.0
### -- Authors: 
### -- File: test/Test1/Controllers/Default.rakumod
### ----------------------------------------------------
use Web::App::MVC::Controller;
use Test1::Model;

class Test1::Controllers::Default is Web::App::MVC::Controller {
    method handle($context) {
        #$*ERR.say: "in handle()";
        $context.content-type: 'text/plain';
        my $name = $context.get('name', :default<World>);
        my $model = self.get-model(Test1::Model);
        my $users = $model.get.rows;
        $context.send: self.render('hello', :$name, :$users);
    }
}

# vim: expandtab shiftwidth=4


