2023-05-09 03:20:23 +02:00
|
|
|
package OwlcodeTech::Controller::Example;
|
2022-11-09 13:31:58 +01:00
|
|
|
use Mojo::Base 'Mojolicious::Controller', -signatures;
|
|
|
|
|
|
|
|
# This action will render a template
|
|
|
|
sub welcome ($self) {
|
|
|
|
|
|
|
|
# Render template "example/welcome.html.ep" with message
|
|
|
|
$self->render(msg => 'Welcome to the Mojolicious real-time web framework!');
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|